{"id":15161,"date":"2024-04-01T15:55:20","date_gmt":"2024-04-01T12:25:20","guid":{"rendered":"https:\/\/www.itpiran.net\/blog\/?p=15161"},"modified":"2024-04-01T15:55:20","modified_gmt":"2024-04-01T12:25:20","slug":"deploy-and-configure-an-amazon-lightsail-mysql-database","status":"publish","type":"post","link":"https:\/\/www.itpiran.net\/blog\/en\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/","title":{"rendered":"Deploy and configure Amazon Lightsail MySQL database"},"content":{"rendered":"<h2 id=\"%d9%85%d9%82%d8%af%d9%85%d9%87\">Introduction<\/h2>\n<p>In this tutorial, you will deploy a database in Amazon Lightsail that can be used by any Lightsail instance or applications deployed in the same AWS region. This allows you to build applications and systems in Lightsail without having to use additional AWS services. This tutorial also helps you add databases to an instance, add users, create snapshots of your data, and understand how to view database metrics.<\/p>\n<h5 id=\"%d8%a2%d9%86%da%86%d9%87-%d8%b1%d8%a7-%da%a9%d9%87-%d8%a7%d9%86%d8%ac%d8%a7%d9%85-%d8%ae%d9%88%d8%a7%d9%87%db%8c%d8%af-%d8%af%d8%a7%d8%af\">What you will do<\/h5>\n<ul>\n<li>Deploy a Lightsail MySQL database instance.<\/li>\n<li>Deploy a Lightsail Ubuntu instance.<\/li>\n<li>Connect the Ubuntu instance to the database instance.<\/li>\n<li>Create additional users and databases in the database instance.<\/li>\n<li>Enable logging and snapshots of the database instance.<\/li>\n<\/ul>\n<h5 id=\"%d9%be%db%8c%d8%b4-%d9%86%db%8c%d8%a7%d8%b2%d9%87%d8%a7\">Prerequisites<\/h5>\n<ul>\n<li>An AWS account<\/li>\n<\/ul>\n<p>1. To get started, go to the Amazon Lightsail console and select the Databases tab.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"2560\"  height=\"1428\"  class=\"aligncenter wp-image-15162 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 2560px) 100vw, 2560px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01143534\/1.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01143534\/1.png 2560w, https:\/\/cdn.itpiran.net\/2024\/04\/01143534\/1-300x167.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01143534\/1-1024x571.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01143534\/1-768x428.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01143534\/1-1536x857.png 1536w, https:\/\/cdn.itpiran.net\/2024\/04\/01143534\/1-2048x1142.png 2048w, https:\/\/cdn.itpiran.net\/2024\/04\/01143534\/1-110x61.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01143534\/1-200x112.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01143534\/1-380x212.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01143534\/1-255x142.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01143534\/1-550x307.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01143534\/1-800x446.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01143534\/1-1160x647.png 1160w\" ><br \/>\n2. Select Create Database and select Change AWS Region and Availability Zone and select the Region and Availability Zone where you want your database to be located.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"1422\"  height=\"576\"  class=\"aligncenter wp-image-15163 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 1422px) 100vw, 1422px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01143739\/2.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01143739\/2.png 1422w, https:\/\/cdn.itpiran.net\/2024\/04\/01143739\/2-300x122.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01143739\/2-1024x415.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01143739\/2-768x311.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01143739\/2-110x45.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01143739\/2-200x81.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01143739\/2-380x154.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01143739\/2-255x103.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01143739\/2-550x223.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01143739\/2-800x324.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01143739\/2-1160x470.png 1160w\" ><br \/>\n3. Choose your database. Lightsail currently supports MySQL and PostgreSQL. For this tutorial, choose MySQL and use the latest version.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"1630\"  height=\"674\"  class=\"aligncenter wp-image-15164 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 1630px) 100vw, 1630px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01143848\/3.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01143848\/3.png 1630w, https:\/\/cdn.itpiran.net\/2024\/04\/01143848\/3-300x124.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01143848\/3-1024x423.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01143848\/3-768x318.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01143848\/3-1536x635.png 1536w, https:\/\/cdn.itpiran.net\/2024\/04\/01143848\/3-110x45.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01143848\/3-200x83.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01143848\/3-380x157.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01143848\/3-255x105.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01143848\/3-550x227.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01143848\/3-800x331.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01143848\/3-1160x480.png 1160w\" ><br \/>\nSelect Specify login credentials .4. You can create a database username like dbmasteruser or you can leave it blank and you will see the default credentials after the database is deployed.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"1208\"  height=\"354\"  class=\"aligncenter wp-image-15165 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 1208px) 100vw, 1208px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01144046\/4.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01144046\/4.png 1208w, https:\/\/cdn.itpiran.net\/2024\/04\/01144046\/4-300x88.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01144046\/4-1024x300.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01144046\/4-768x225.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01144046\/4-110x32.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01144046\/4-200x59.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01144046\/4-380x111.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01144046\/4-255x75.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01144046\/4-550x161.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01144046\/4-800x234.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01144046\/4-1160x340.png 1160w\" ><br \/>\n5. By default, Lightsail creates a strong password for your database instance, which is displayed in the console after the database is deployed. Uncheck Create a strong password for me and enter Sunny2DAY! or a password of your choice.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"1450\"  height=\"450\"  class=\"aligncenter wp-image-15166 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 1450px) 100vw, 1450px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01144201\/5.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01144201\/5.png 1450w, https:\/\/cdn.itpiran.net\/2024\/04\/01144201\/5-300x93.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01144201\/5-1024x318.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01144201\/5-768x238.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01144201\/5-110x34.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01144201\/5-200x62.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01144201\/5-380x118.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01144201\/5-255x79.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01144201\/5-550x171.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01144201\/5-800x248.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01144201\/5-1160x360.png 1160w\" ><br \/>\n6. Give your database a name. When you deploy a Lightsail database, you are actually deploying both a database instance (a server running MySQL) and a new database on the instance. This step is to name the database running on the instance. Once this is deployed, you can log in to the database instance and create additional databases on a single instance without having to deploy additional compute. You will see this in step 26. Additionally, the name you give your database here will be prefixed with the letters db. Enter main, which will be created as dbmain.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"1642\"  height=\"396\"  class=\"aligncenter wp-image-15167 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 1642px) 100vw, 1642px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01144458\/6.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01144458\/6.png 1642w, https:\/\/cdn.itpiran.net\/2024\/04\/01144458\/6-300x72.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01144458\/6-1024x247.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01144458\/6-768x185.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01144458\/6-1536x370.png 1536w, https:\/\/cdn.itpiran.net\/2024\/04\/01144458\/6-110x27.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01144458\/6-200x48.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01144458\/6-380x92.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01144458\/6-255x61.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01144458\/6-550x133.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01144458\/6-800x193.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01144458\/6-1160x280.png 1160w\" ><br \/>\n7. With Lightsail databases, you can choose between a Standard plan and a High Availability plan. The High Availability plan offers two database servers and keeps your database running even if something happens to the primary database. High Availability plans are twice the cost because they have twice the number of resources as the Standard plan. Choose the $15 Standard plan.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"1672\"  height=\"962\"  class=\"aligncenter wp-image-15168 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 1672px) 100vw, 1672px\"  data-pk-src=\"https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/7.png\"  data-pk-srcset=\"https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/7.png 1672w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/7-300x173.png 300w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/7-1024x589.png 1024w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/7-768x442.png 768w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/7-1536x884.png 1536w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/7-110x63.png 110w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/7-200x115.png 200w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/7-380x219.png 380w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/7-255x147.png 255w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/7-550x316.png 550w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/7-800x460.png 800w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/7-1160x667.png 1160w\" ><br \/>\n8. Enter DB-Instance-1. This is the name of the database instance (the server running MySQL) that you will see in the Lightsail console under your database resources.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"1142\"  height=\"322\"  class=\"aligncenter wp-image-15169 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 1142px) 100vw, 1142px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01144735\/8.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01144735\/8.png 1142w, https:\/\/cdn.itpiran.net\/2024\/04\/01144735\/8-300x85.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01144735\/8-1024x289.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01144735\/8-768x217.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01144735\/8-110x31.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01144735\/8-200x56.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01144735\/8-380x107.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01144735\/8-255x72.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01144735\/8-550x155.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01144735\/8-800x226.png 800w\" ><br \/>\n9. Select Create Database. Deploying the database server will take 10-15 minutes. It will be grayed out with a Creating status until the resource is ready.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"820\"  height=\"200\"  class=\"aligncenter wp-image-15170 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 820px) 100vw, 820px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01144844\/9.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01144844\/9.png 820w, https:\/\/cdn.itpiran.net\/2024\/04\/01144844\/9-300x73.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01144844\/9-768x187.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01144844\/9-110x27.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01144844\/9-200x49.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01144844\/9-380x93.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01144844\/9-255x62.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01144844\/9-550x134.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01144844\/9-800x195.png 800w\" ><br \/>\n10. While you wait for your database to be created, we will deploy a Lightsail Ubuntu instance that we can use to remotely access our database instance and perform some administrative tasks. Select the Lightsail icon or the Home button at the top of the Lightsail console, which will take you to the Instances page.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"2240\"  height=\"766\"  class=\"aligncenter wp-image-15171 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 2240px) 100vw, 2240px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01144946\/10.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01144946\/10.png 2240w, https:\/\/cdn.itpiran.net\/2024\/04\/01144946\/10-300x103.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01144946\/10-1024x350.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01144946\/10-768x263.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01144946\/10-1536x525.png 1536w, https:\/\/cdn.itpiran.net\/2024\/04\/01144946\/10-2048x700.png 2048w, https:\/\/cdn.itpiran.net\/2024\/04\/01144946\/10-110x38.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01144946\/10-200x68.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01144946\/10-380x130.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01144946\/10-255x87.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01144946\/10-550x188.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01144946\/10-800x274.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01144946\/10-1160x397.png 1160w\" ><br \/>\n11. Select Create instance. Make sure your instance will be deployed in the same region as your database. If it shows a different region, expand the region selection and select the appropriate region. Otherwise, select OS Only in the Select a blueprint section and select the latest Ubuntu blueprint.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"1710\"  height=\"1304\"  class=\"aligncenter wp-image-15172 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 1710px) 100vw, 1710px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01145127\/11.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01145127\/11.png 1710w, https:\/\/cdn.itpiran.net\/2024\/04\/01145127\/11-300x229.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01145127\/11-1024x781.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01145127\/11-768x586.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01145127\/11-1536x1171.png 1536w, https:\/\/cdn.itpiran.net\/2024\/04\/01145127\/11-110x84.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01145127\/11-200x153.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01145127\/11-380x290.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01145127\/11-255x194.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01145127\/11-550x419.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01145127\/11-800x610.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01145127\/11-1160x885.png 1160w\" ><br \/>\n12. Select Add Startup Script. This code will be run at the end of this instance deployment. You will use the startup script to add the MySQL client, which will allow you to remotely connect to your database instance and perform administrative tasks. Paste the following code into the Startup Script text box:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code># Update the package index\r\nsudo apt update\r\n# Install mysql client\r\nsudo apt-get install mysql-client-core-8.0 -y<\/code><\/pre>\n<\/div>\n<p>13. For this example, choose the $3.50\/month sample plan. For larger apps or websites, you can choose the sample plan according to your needs.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"2022\"  height=\"922\"  class=\"aligncenter wp-image-15173 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 2022px) 100vw, 2022px\"  data-pk-src=\"https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/13.png\"  data-pk-srcset=\"https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/13.png 2022w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/13-300x137.png 300w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/13-1024x467.png 1024w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/13-768x350.png 768w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/13-1536x700.png 1536w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/13-110x50.png 110w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/13-200x91.png 200w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/13-380x173.png 380w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/13-255x116.png 255w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/13-550x251.png 550w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/13-800x365.png 800w, https:\/\/www.itpiran.net\/blog\/wp-content\/uploads\/2024\/04\/13-1160x529.png 1160w\" ><br \/>\n14. Enter Ubuntu-1 to identify your instance, then select Create instance.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"2054\"  height=\"1276\"  class=\"aligncenter wp-image-15174 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 2054px) 100vw, 2054px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01145521\/14.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01145521\/14.png 2054w, https:\/\/cdn.itpiran.net\/2024\/04\/01145521\/14-300x186.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01145521\/14-1024x636.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01145521\/14-768x477.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01145521\/14-1536x954.png 1536w, https:\/\/cdn.itpiran.net\/2024\/04\/01145521\/14-2048x1272.png 2048w, https:\/\/cdn.itpiran.net\/2024\/04\/01145521\/14-110x68.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01145521\/14-200x124.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01145521\/14-380x236.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01145521\/14-255x158.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01145521\/14-550x342.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01145521\/14-800x497.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01145521\/14-1160x721.png 1160w\" ><br \/>\n15. Wait for the database instance to become available. You can see the status change by going to the Databases tab by selecting the Lightsail icon or the Home button in the Lightsail console.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"1140\"  height=\"364\"  class=\"aligncenter wp-image-15175 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 1140px) 100vw, 1140px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01152412\/15.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01152412\/15.png 1140w, https:\/\/cdn.itpiran.net\/2024\/04\/01152412\/15-300x96.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01152412\/15-1024x327.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01152412\/15-768x245.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01152412\/15-110x35.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01152412\/15-200x64.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01152412\/15-380x121.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01152412\/15-255x81.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01152412\/15-550x176.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01152412\/15-800x255.png 800w\" ><br \/>\n16. Now that your database is available, you can continue. Your instance will only be accessible from other resources in your Lightsail account that are in the same region as this instance. This means that you cannot connect to this database from your home or work or from resources outside the current region. Select the instance name to continue. Your screen will look similar to this screenshot. You will see Resources, MySQL version, and Region, and then you will see Endpoint and Port. The endpoint and port number are what you use to connect an application to the database. Below that, you will see a number of tabs, which we will cover in the next steps. Below the tabs, you will see the username and password to connect to the database instance. You can also add other users that are not covered in this tutorial.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"2444\"  height=\"1238\"  class=\"aligncenter wp-image-15176 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 2444px) 100vw, 2444px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01152604\/16.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01152604\/16.png 2444w, https:\/\/cdn.itpiran.net\/2024\/04\/01152604\/16-300x152.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01152604\/16-1024x519.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01152604\/16-768x389.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01152604\/16-1536x778.png 1536w, https:\/\/cdn.itpiran.net\/2024\/04\/01152604\/16-2048x1037.png 2048w, https:\/\/cdn.itpiran.net\/2024\/04\/01152604\/16-110x56.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01152604\/16-200x101.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01152604\/16-380x192.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01152604\/16-255x129.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01152604\/16-550x279.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01152604\/16-800x405.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01152604\/16-1160x588.png 1160w\" ><br \/>\n17. Select the Logs &amp; history tab, which provides additional tools for troubleshooting your database instance. By default, these logs are disabled, but they can be enabled by selecting the toggle buttons. Enable all the logs on this page by selecting the toggle buttons.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"2558\"  height=\"1536\"  class=\"aligncenter wp-image-15177 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 2558px) 100vw, 2558px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01152733\/17.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01152733\/17.png 2558w, https:\/\/cdn.itpiran.net\/2024\/04\/01152733\/17-300x180.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01152733\/17-1024x615.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01152733\/17-768x461.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01152733\/17-1536x922.png 1536w, https:\/\/cdn.itpiran.net\/2024\/04\/01152733\/17-2048x1230.png 2048w, https:\/\/cdn.itpiran.net\/2024\/04\/01152733\/17-110x66.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01152733\/17-200x120.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01152733\/17-380x228.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01152733\/17-255x153.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01152733\/17-550x330.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01152733\/17-800x480.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01152733\/17-1160x697.png 1160w\" ><br \/>\n18. Once these logs are enabled, you can select the Open log buttons to see what is being logged and use it for troubleshooting if needed.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"1740\"  height=\"1318\"  class=\"aligncenter wp-image-15178 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 1740px) 100vw, 1740px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01153000\/18.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01153000\/18.png 1740w, https:\/\/cdn.itpiran.net\/2024\/04\/01153000\/18-300x227.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01153000\/18-1024x776.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01153000\/18-768x582.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01153000\/18-1536x1163.png 1536w, https:\/\/cdn.itpiran.net\/2024\/04\/01153000\/18-110x83.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01153000\/18-200x151.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01153000\/18-380x288.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01153000\/18-255x193.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01153000\/18-550x417.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01153000\/18-800x606.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01153000\/18-1160x879.png 1160w\" ><br \/>\n19. Next, select the Metrics tab. Here you can select various metrics and see a graphical representation of resource usage. This is useful when troubleshooting or determining if a larger instance is needed.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"1936\"  height=\"1376\"  class=\"aligncenter wp-image-15179 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 1936px) 100vw, 1936px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01153120\/19.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01153120\/19.png 1936w, https:\/\/cdn.itpiran.net\/2024\/04\/01153120\/19-300x213.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01153120\/19-1024x728.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01153120\/19-768x546.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01153120\/19-1536x1092.png 1536w, https:\/\/cdn.itpiran.net\/2024\/04\/01153120\/19-110x78.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01153120\/19-200x142.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01153120\/19-380x270.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01153120\/19-255x181.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01153120\/19-550x391.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01153120\/19-800x569.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01153120\/19-1160x824.png 1160w\" ><br \/>\n20. Next, select the Networking tab. You have the option to enable public mode. However, this opens your database to connections from anywhere in the world and is highly discouraged except for temporary troubleshooting purposes. If you select the public mode switch, the instance will take 10 to 15 minutes to reconfigure to take effect. Similarly, if you clear the public mode option, it will take a few minutes to reconfigure the instance to the latest settings.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"1642\"  height=\"504\"  class=\"aligncenter wp-image-15180 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 1642px) 100vw, 1642px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01153243\/20.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01153243\/20.png 1642w, https:\/\/cdn.itpiran.net\/2024\/04\/01153243\/20-300x92.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01153243\/20-1024x314.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01153243\/20-768x236.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01153243\/20-1536x471.png 1536w, https:\/\/cdn.itpiran.net\/2024\/04\/01153243\/20-110x34.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01153243\/20-200x61.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01153243\/20-380x117.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01153243\/20-255x78.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01153243\/20-550x169.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01153243\/20-800x246.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01153243\/20-1160x356.png 1160w\" ><br \/>\n21. Select Snapshots &amp; restore. Here you can create a manual snapshot (point-in-time copy) of your database. Additionally, Lightsail will increment your database backups by 5 minutes. If you need to restore to a previous snapshot, you can select Restore to new database and deploy it as a new database with a different instance name that you can point your applications to again. Select Create snapshot.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"2256\"  height=\"1134\"  class=\"aligncenter wp-image-15181 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 2256px) 100vw, 2256px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01153341\/21.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01153341\/21.png 2256w, https:\/\/cdn.itpiran.net\/2024\/04\/01153341\/21-300x151.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01153341\/21-1024x515.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01153341\/21-768x386.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01153341\/21-1536x772.png 1536w, https:\/\/cdn.itpiran.net\/2024\/04\/01153341\/21-2048x1029.png 2048w, https:\/\/cdn.itpiran.net\/2024\/04\/01153341\/21-110x55.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01153341\/21-200x101.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01153341\/21-380x191.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01153341\/21-255x128.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01153341\/21-550x276.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01153341\/21-800x402.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01153341\/21-1160x583.png 1160w\" ><br \/>\n22. Name your snapshot. In this case, enter DB-Instance-1-Fresh-Deployment and select Create. Your snapshot will be created in a few minutes.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"1658\"  height=\"626\"  class=\"aligncenter wp-image-15182 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 1658px) 100vw, 1658px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01153507\/22.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01153507\/22.png 1658w, https:\/\/cdn.itpiran.net\/2024\/04\/01153507\/22-300x113.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01153507\/22-1024x387.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01153507\/22-768x290.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01153507\/22-1536x580.png 1536w, https:\/\/cdn.itpiran.net\/2024\/04\/01153507\/22-110x42.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01153507\/22-200x76.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01153507\/22-380x143.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01153507\/22-255x96.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01153507\/22-550x208.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01153507\/22-800x302.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01153507\/22-1160x438.png 1160w\" ><br \/>\n23. After creating the snapshot, select the 3-dot button to the right of the snapshot. This option provides the option to create a new database from this snapshot.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"1724\"  height=\"494\"  class=\"aligncenter wp-image-15183 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 1724px) 100vw, 1724px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01153614\/23.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01153614\/23.png 1724w, https:\/\/cdn.itpiran.net\/2024\/04\/01153614\/23-300x86.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01153614\/23-1024x293.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01153614\/23-768x220.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01153614\/23-1536x440.png 1536w, https:\/\/cdn.itpiran.net\/2024\/04\/01153614\/23-110x32.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01153614\/23-200x57.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01153614\/23-380x109.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01153614\/23-255x73.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01153614\/23-550x158.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01153614\/23-800x229.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01153614\/23-1160x332.png 1160w\" ><br \/>\n24. Copy the database endpoint to your clipboard, then switch back to your Ubuntu-1 instance. Select the remote terminal icon. A new SSH window will appear and you can now connect to your database instance from this instance. Enter the following command, replacing DATABASE_URL with the database endpoint you copied to your clipboard in the previous step. (Note: Make sure there is no space between -p and the password.)<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code>mysql -h DATABASE_URL -u dbmasteruser -pSunny2DAY!<\/code><\/pre>\n<\/div>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"2044\"  height=\"902\"  class=\"aligncenter wp-image-15184 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 2044px) 100vw, 2044px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01153919\/24.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01153919\/24.png 2044w, https:\/\/cdn.itpiran.net\/2024\/04\/01153919\/24-300x132.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01153919\/24-1024x452.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01153919\/24-768x339.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01153919\/24-1536x678.png 1536w, https:\/\/cdn.itpiran.net\/2024\/04\/01153919\/24-110x49.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01153919\/24-200x88.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01153919\/24-380x168.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01153919\/24-255x113.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01153919\/24-550x243.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01153919\/24-800x353.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01153919\/24-1160x512.png 1160w\" ><br \/>\n25. You will now see that you are connected to the MySQL instance. Run the command:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code>SHOW DATABASES;<\/code><\/pre>\n<\/div>\n<p>You will see the dbmain that you created during database deployment, along with several others used by the Lightsail database service.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"540\"  height=\"420\"  class=\"aligncenter wp-image-15185 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 540px) 100vw, 540px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01154108\/25.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01154108\/25.png 540w, https:\/\/cdn.itpiran.net\/2024\/04\/01154108\/25-300x233.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01154108\/25-110x86.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01154108\/25-200x156.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01154108\/25-380x296.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01154108\/25-255x198.png 255w\" ><br \/>\n26. Create another database in this instance using the following command:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code>CREATE DATABASE secondDB;<\/code><\/pre>\n<\/div>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"461\"  height=\"72\"  class=\"aligncenter wp-image-15186 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 461px) 100vw, 461px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01154340\/26.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01154340\/26.png 461w, https:\/\/cdn.itpiran.net\/2024\/04\/01154340\/26-300x47.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01154340\/26-110x17.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01154340\/26-200x31.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01154340\/26-380x59.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01154340\/26-255x40.png 255w\" ><br \/>\n27. Grant your user dbmasteruser privileges on the new database by running the following command:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code>GRANT ALL PRIVILEGES ON secondDB.* TO 'dbmasteruser'@'%';<\/code><\/pre>\n<\/div>\n<p>The above code will grant your user all privileges on the secondDB database.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"1586\"  height=\"120\"  class=\"aligncenter wp-image-15187 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 1586px) 100vw, 1586px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/04\/01154504\/27.png\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/04\/01154504\/27.png 1586w, https:\/\/cdn.itpiran.net\/2024\/04\/01154504\/27-300x23.png 300w, https:\/\/cdn.itpiran.net\/2024\/04\/01154504\/27-1024x77.png 1024w, https:\/\/cdn.itpiran.net\/2024\/04\/01154504\/27-768x58.png 768w, https:\/\/cdn.itpiran.net\/2024\/04\/01154504\/27-1536x116.png 1536w, https:\/\/cdn.itpiran.net\/2024\/04\/01154504\/27-110x8.png 110w, https:\/\/cdn.itpiran.net\/2024\/04\/01154504\/27-200x15.png 200w, https:\/\/cdn.itpiran.net\/2024\/04\/01154504\/27-380x29.png 380w, https:\/\/cdn.itpiran.net\/2024\/04\/01154504\/27-255x19.png 255w, https:\/\/cdn.itpiran.net\/2024\/04\/01154504\/27-550x42.png 550w, https:\/\/cdn.itpiran.net\/2024\/04\/01154504\/27-800x61.png 800w, https:\/\/cdn.itpiran.net\/2024\/04\/01154504\/27-1160x88.png 1160w\" ><br \/>\n28. Finally, we can exit the remote SQL session by entering:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-sql\" data-lang=\"SQL\"><code>exit;<\/code><\/pre>\n<\/div>\n<h2 id=\"%d9%86%d8%aa%db%8c%d8%ac%d9%87\">Result<\/h2>\n<p>Congratulations on deploying and configuring your Lightsail database instance. You should now feel comfortable using Lightsail databases to power any application you build or deploy in Lightsail.<\/p>","protected":false},"excerpt":{"rendered":"Introduction In this tutorial, you will deploy a database in Amazon Lightsail that can\u2026","protected":false},"author":1,"featured_media":15188,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"\u0645\u0633\u062a\u0642\u0631 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 Amazon Lightsail MySQL","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_canonical":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_opengraph-image":"","_yoast_wpseo_twitter-description":"","_yoast_wpseo_twitter-image":"","_yoast_wpseo_focuskeywords":"","_yoast_wpseo_primary_category":"220","footnotes":""},"categories":[220,193,349],"tags":[403,391,392],"class_list":{"0":"post-15161","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-amazon","8":"category-tutorials","9":"category-database","10":"tag-data-base","11":"tag-mysql","12":"tag-392"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 Amazon Lightsail MySQL \u0631\u0627 \u0645\u0633\u062a\u0642\u0631 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f - \u0628\u0644\u0627\u06af ITPiran<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.itpiran.net\/blog\/en\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 Amazon Lightsail MySQL \u0631\u0627 \u0645\u0633\u062a\u0642\u0631 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f - \u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"og:description\" content=\"\u0645\u0642\u062f\u0645\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u0634\u0645\u0627 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0631\u0627 \u062f\u0631 Amazon Lightsail \u0645\u0633\u062a\u0642\u0631 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.itpiran.net\/blog\/en\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-01T12:25:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.itpiran.net\/2024\/04\/01155346\/amazon-sql.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1793\" \/>\n\t<meta property=\"og:image:height\" content=\"1110\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/amazon\\\/deploy-and-configure-an-amazon-lightsail-mysql-database\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/amazon\\\/deploy-and-configure-an-amazon-lightsail-mysql-database\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\"},\"headline\":\"\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 Amazon Lightsail MySQL \u0631\u0627 \u0645\u0633\u062a\u0642\u0631 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f\",\"datePublished\":\"2024-04-01T12:25:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/amazon\\\/deploy-and-configure-an-amazon-lightsail-mysql-database\\\/\"},\"wordCount\":111,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/amazon\\\/deploy-and-configure-an-amazon-lightsail-mysql-database\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/04\\\/01155346\\\/amazon-sql.jpg\",\"keywords\":[\"data base\",\"MySQL\",\"\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\"],\"articleSection\":[\"\u0622\u0645\u0627\u0632\u0648\u0646\",\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/amazon\\\/deploy-and-configure-an-amazon-lightsail-mysql-database\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/amazon\\\/deploy-and-configure-an-amazon-lightsail-mysql-database\\\/\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/amazon\\\/deploy-and-configure-an-amazon-lightsail-mysql-database\\\/\",\"name\":\"\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 Amazon Lightsail MySQL \u0631\u0627 \u0645\u0633\u062a\u0642\u0631 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f - \u0628\u0644\u0627\u06af ITPiran\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/amazon\\\/deploy-and-configure-an-amazon-lightsail-mysql-database\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/amazon\\\/deploy-and-configure-an-amazon-lightsail-mysql-database\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/04\\\/01155346\\\/amazon-sql.jpg\",\"datePublished\":\"2024-04-01T12:25:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/amazon\\\/deploy-and-configure-an-amazon-lightsail-mysql-database\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/amazon\\\/deploy-and-configure-an-amazon-lightsail-mysql-database\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/amazon\\\/deploy-and-configure-an-amazon-lightsail-mysql-database\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/04\\\/01155346\\\/amazon-sql.jpg\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/04\\\/01155346\\\/amazon-sql.jpg\",\"width\":1793,\"height\":1110},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/amazon\\\/deploy-and-configure-an-amazon-lightsail-mysql-database\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0622\u0645\u0627\u0632\u0648\u0646\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/category\\\/amazon\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 Amazon Lightsail MySQL \u0631\u0627 \u0645\u0633\u062a\u0642\u0631 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"name\":\"\u0628\u0644\u0627\u06af ITPiran\",\"description\":\"\u0627\u062e\u0628\u0627\u0631 \u0648 \u0645\u0642\u0627\u0644\u0627\u062a \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\",\"name\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"alternateName\":\"ITPIran Blog\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"width\":512,\"height\":512,\"caption\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\",\"name\":\"admin\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/en\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Deploy and Configure Amazon Lightsail MySQL Database - ITPiran Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.itpiran.net\/blog\/en\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/","og_locale":"en_US","og_type":"article","og_title":"\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 Amazon Lightsail MySQL \u0631\u0627 \u0645\u0633\u062a\u0642\u0631 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f - \u0628\u0644\u0627\u06af ITPiran","og_description":"\u0645\u0642\u062f\u0645\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u0634\u0645\u0627 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0631\u0627 \u062f\u0631 Amazon Lightsail \u0645\u0633\u062a\u0642\u0631 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f&hellip;","og_url":"https:\/\/www.itpiran.net\/blog\/en\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/","og_site_name":"\u0628\u0644\u0627\u06af ITPiran","article_published_time":"2024-04-01T12:25:20+00:00","og_image":[{"width":1793,"height":1110,"url":"https:\/\/cdn.itpiran.net\/2024\/04\/01155346\/amazon-sql.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.itpiran.net\/blog\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/#article","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/"},"author":{"name":"admin","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81"},"headline":"\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 Amazon Lightsail MySQL \u0631\u0627 \u0645\u0633\u062a\u0642\u0631 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f","datePublished":"2024-04-01T12:25:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/"},"wordCount":111,"commentCount":0,"publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/04\/01155346\/amazon-sql.jpg","keywords":["data base","MySQL","\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647"],"articleSection":["\u0622\u0645\u0627\u0632\u0648\u0646","\u0622\u0645\u0648\u0632\u0634\u06cc","\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.itpiran.net\/blog\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.itpiran.net\/blog\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/","url":"https:\/\/www.itpiran.net\/blog\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/","name":"Deploy and Configure Amazon Lightsail MySQL Database - ITPiran Blog","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/#primaryimage"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/04\/01155346\/amazon-sql.jpg","datePublished":"2024-04-01T12:25:20+00:00","breadcrumb":{"@id":"https:\/\/www.itpiran.net\/blog\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.itpiran.net\/blog\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.itpiran.net\/blog\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/#primaryimage","url":"https:\/\/cdn.itpiran.net\/2024\/04\/01155346\/amazon-sql.jpg","contentUrl":"https:\/\/cdn.itpiran.net\/2024\/04\/01155346\/amazon-sql.jpg","width":1793,"height":1110},{"@type":"BreadcrumbList","@id":"https:\/\/www.itpiran.net\/blog\/amazon\/deploy-and-configure-an-amazon-lightsail-mysql-database\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.itpiran.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u0622\u0645\u0627\u0632\u0648\u0646","item":"https:\/\/www.itpiran.net\/blog\/category\/amazon\/"},{"@type":"ListItem","position":3,"name":"\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 Amazon Lightsail MySQL \u0631\u0627 \u0645\u0633\u062a\u0642\u0631 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f"}]},{"@type":"WebSite","@id":"https:\/\/www.itpiran.net\/blog\/#website","url":"https:\/\/www.itpiran.net\/blog\/","name":"ITPiran Blog","description":"Iranian Sustainable Trade News and Articles","publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.itpiran.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.itpiran.net\/blog\/#organization","name":"Sustainable Iranian Business Blog","alternateName":"ITPIran Blog","url":"https:\/\/www.itpiran.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","contentUrl":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","width":512,"height":512,"caption":"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81","name":"admin","url":"https:\/\/www.itpiran.net\/blog\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/15161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/comments?post=15161"}],"version-history":[{"count":1,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/15161\/revisions"}],"predecessor-version":[{"id":15189,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/15161\/revisions\/15189"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/media\/15188"}],"wp:attachment":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/media?parent=15161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/categories?post=15161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/tags?post=15161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}