{"id":8987,"date":"2026-09-18T10:11:13","date_gmt":"2026-09-18T10:11:13","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=8987"},"modified":"2026-09-19T15:34:54","modified_gmt":"2026-09-19T15:34:54","slug":"creating-cloud-sql-instance-using-cloud-shell","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/","title":{"rendered":"Creating Cloud SQL Instance using cloud shell"},"content":{"rendered":"\r\n<h1>Creating a Cloud SQL Instance With gcloud<\/h1>\r\n<p class=\"wp-block-paragraph\"><strong><b>Cloud SQL<\/b><\/strong>\u00a0is Google Cloud&#8217;s managed relational database service, running MySQL, PostgreSQL, or SQL Server without you having to patch, back up, or maintain the underlying server yourself. Everything shown in the console, creating an instance, setting a password, opening network access, has an equivalent gcloud command, and that command line path is what this walks through.<\/p>\r\n<p>Doing this through Cloud Shell instead of clicking through the console matters once you go beyond a single, one time setup. A command you have already written can be rerun exactly, copied into a script, or handed to a teammate, none of which a sequence of console clicks gives you. It is also simply faster once you know the commands, since creating an instance, setting its password, and opening it up for a connection are three commands here instead of three separate screens.<\/p>\r\n<p>This creates a Cloud SQL for MySQL instance entirely from Cloud Shell, sets a password for it, opens network access to it, then connects directly using the mysql client, the same end result as using the console, reached a different way.<\/p>\r\n<h2>Step by Step Process of Creating a Cloud SQL<\/h2>\r\n<h3>Step One: Activate Cloud Shell<\/h3>\r\n<p>Open the console and click Activate Cloud Shell.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"382\" height=\"139\" class=\"wp-image-8988\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-347.png\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-347.png 382w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-347-300x109.png 300w\" sizes=\"auto, (max-width: 382px) 100vw, 382px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Two: Set Your Project ID as a Variable<\/h3>\r\n<p class=\"wp-block-paragraph\">export PROJECT_ID=$(gcloud info &#8211;format=&#8221;value(config.project)&#8221;)<br \/>echo $PROJECT_ID<\/p>\r\n<p>The first line saves your current project ID into a variable. The second prints it back, so you can confirm it picked up the right one.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8989\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-348.png\" alt=\"\" width=\"731\" height=\"116\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-348.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-348-300x48.png 300w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Three: Name a Bucket Variable<\/h3>\r\n<p class=\"wp-block-paragraph\">export BUCKET=${PROJECT_ID}-ml<br \/>echo $BUCKET<\/p>\r\n<p>This saves a bucket name based on your project ID into a variable, then prints it. This does not create the bucket itself, it just prepares the name for later use.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8990\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-349.png\" alt=\"\" width=\"849\" height=\"101\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-349.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-349-300x36.png 300w\" sizes=\"auto, (max-width: 849px) 100vw, 849px\" \/><\/figure>\r\n<h3>Step Four: Create the Instance<\/h3>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">$\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 gcloud sql instances create taxi &#8211;tier=db-n1-standard-1<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It will create a sql instance with name taxi.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It will take a little bit time to create.<\/p>\r\n<p><strong>Accessing the Instance<\/strong>:<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8991\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-350.png\" alt=\"\" width=\"745\" height=\"220\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-350.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-350-300x89.png 300w\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Five: Set a Password<\/h3>\r\n<p class=\"wp-block-paragraph\">gcloud sql users set-password root &#8211;host % &#8211;instance INSTANCE_NAME &#8211;password<\/p>\r\n<p>Leave off the password value itself here, and just add &#8211;password with nothing after it. gcloud will prompt you to type it interactively instead, which keeps it out of your shell history, unlike typing the actual password directly into the command.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8992\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-351.png\" alt=\"\" width=\"843\" height=\"92\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-351.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-351-300x33.png 300w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Six: Authorize a Network<\/h3>\r\n<p class=\"wp-block-paragraph\">gcloud sql instances patch INSTANCE_NAME &#8211;authorized-networks 0.0.0.0\/0<\/p>\r\n<p>Press y to confirm.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8993\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-352.png\" alt=\"\" width=\"724\" height=\"290\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-352.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-352-300x120.png 300w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">As covered above, this specific range opens the instance to the entire internet, which is fine for a five minute throwaway test and a genuinely bad idea for anything real. If you know the specific IP address you will be connecting from, authorize just that address instead, for example replacing 0.0.0.0\/0 with YOUR_IP_ADDRESS followed by \/32. The section below covers a better option than authorized networks entirely.<\/p>\r\n<h3>Step Seven: Find the Instance&#8217;s IP Address<\/h3>\r\n<p>Open the console, then the menu, then SQL.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"296\" height=\"194\" class=\"wp-image-8994\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-353.png\" alt=\"\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Copy the instance&#8217;s IP address.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8995\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-354.png\" alt=\"\" width=\"866\" height=\"106\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-354.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-354-300x37.png 300w\" sizes=\"auto, (max-width: 866px) 100vw, 866px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Eight: Save the IP Address as a Variable<\/h3>\r\n<p class=\"wp-block-paragraph\">MYSQL=IP_ADDRESS<br \/>echo $MYSQL<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8996\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-355.png\" alt=\"\" width=\"866\" height=\"115\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-355.png 586w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-355-300x40.png 300w\" sizes=\"auto, (max-width: 866px) 100vw, 866px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Nine: Connect With the MySQL Client<\/h3>\r\n<p class=\"wp-block-paragraph\">mysql &#8211;host=$MYSQL &#8211;user=root &#8211;password<\/p>\r\n<p>Enter the password you set earlier when prompted. It will not be shown on screen as you type it, this is normal, just press enter once you are done.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8997\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-356.png\" alt=\"\" width=\"683\" height=\"272\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-356.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-356-300x120.png 300w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Ten: Run a Test Command<\/h3>\r\n<p class=\"wp-block-paragraph\">show databases;<\/p>\r\n<p>This lists the databases currently on the instance.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8998\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-357.png\" alt=\"\" width=\"238\" height=\"235\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Eleven: Exit<\/h3>\r\n<p class=\"wp-block-paragraph\">exit<\/p>\r\n<p>This closes the mysql console and returns you to Cloud Shell.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8999\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-358.png\" alt=\"\" width=\"613\" height=\"90\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-358.png 429w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-358-300x44.png 300w\" sizes=\"auto, (max-width: 613px) 100vw, 613px\" \/><\/figure>\r\n<h2>A Safer Way to Connect Than Authorized Networks<\/h2>\r\n<p>Rather than opening a public IP to a wide range of addresses, Google&#8217;s own recommended approach is the Cloud SQL Auth Proxy. It runs alongside your application or on your own machine, handles authentication through IAM permissions instead of a password sitting in a connection string, and encrypts the connection automatically, all without needing to add any address to authorized networks at all. For anything beyond a quick, disposable test, this is the option worth reaching for instead of widening authorized networks.<\/p>\r\n<h2>Common Mistakes to Avoid<\/h2>\r\n<ul>\r\n<li>Leaving 0.0.0.0\/0 in authorized networks past a quick test. Narrow it to a specific address, or switch to the Cloud SQL Auth Proxy, before this instance holds anything you actually care about.<\/li>\r\n<li>Typing a real password directly into a command. It stays in your shell history in plain text. Use the interactive prompt instead by leaving the password flag empty.<\/li>\r\n<li>Copying commands with the wrong dash character. If a command fails with an unrecognized flag error, check that every flag uses two real hyphen characters.<\/li>\r\n<\/ul>\r\n<p>That covers creating and connecting to a Cloud SQL instance from Cloud Shell, and the safer way to handle its network access. To go further, explore <a href=\"https:\/\/prwatech.in\/gcp-training-institutes-in-bangalore\/\"><strong><b>Prwatech&#8217;s Google Cloud training<\/b><\/strong>\u00a0<\/a>program, which includes placement assistance.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Creating a Cloud SQL Instance With gcloud Cloud SQL\u00a0is Google Cloud&#8217;s managed relational database service, running MySQL, PostgreSQL, or SQL Server without you having to patch, back up, or maintain the underlying server yourself. Everything shown in the console, creating an instance, setting a password, opening network access, has an equivalent gcloud command, and that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1631,1],"tags":[614,1416,1419,1417,1418,605,699,700,1420,617,683,684,685,611,1400,692],"class_list":["post-8987","post","type-post","status-publish","format-standard","hentry","category-cloud-sql","category-google-cloud-platform","tag-cloud-shell","tag-cloud-sql-gcp","tag-cloud-sql-mysql","tag-cloud-sql-postgres","tag-cloud-sql-sql-server","tag-gcp","tag-gcp-certification","tag-gcp-cloud-console","tag-gcptraining","tag-google-cloud","tag-google-cloud-certification","tag-google-cloud-console","tag-google-cloud-courses","tag-google-cloud-platform","tag-google-cloud-platform-tutorial","tag-google-cloud-training"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create a Cloud SQL Instance With gcloud in Cloud Shell | Prwatech<\/title>\n<meta name=\"description\" content=\"Create and connect to a Cloud SQL instance using gcloud in Cloud Shell, with a real security warning the original steps leave out. Step by step process\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create a Cloud SQL Instance With gcloud in Cloud Shell | Prwatech\" \/>\n<meta property=\"og:description\" content=\"Create and connect to a Cloud SQL instance using gcloud in Cloud Shell, with a real security warning the original steps leave out. Step by step process\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/\" \/>\n<meta property=\"og:site_name\" content=\"Prwatech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prwatech.in\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-18T10:11:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-19T15:34:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-347.png\" \/>\n\t<meta property=\"og:image:width\" content=\"382\" \/>\n\t<meta property=\"og:image:height\" content=\"139\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Prwatech\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:site\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prwatech\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/\",\"url\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/\",\"name\":\"Create a Cloud SQL Instance With gcloud in Cloud Shell | Prwatech\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-347.png\",\"datePublished\":\"2026-09-18T10:11:13+00:00\",\"dateModified\":\"2026-09-19T15:34:54+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Create and connect to a Cloud SQL instance using gcloud in Cloud Shell, with a real security warning the original steps leave out. Step by step process\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-347.png\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-347.png\",\"width\":382,\"height\":139},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating Cloud SQL Instance using cloud shell\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/prwatech.in\/blog\/#website\",\"url\":\"https:\/\/prwatech.in\/blog\/\",\"name\":\"Prwatech\",\"description\":\"Share Ideas, Start Something Good.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/prwatech.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\",\"name\":\"Prwatech\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"caption\":\"Prwatech\"},\"url\":\"https:\/\/prwatech.in\/blog\/author\/prwatech123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create a Cloud SQL Instance With gcloud in Cloud Shell | Prwatech","description":"Create and connect to a Cloud SQL instance using gcloud in Cloud Shell, with a real security warning the original steps leave out. Step by step process","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:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/","og_locale":"en_US","og_type":"article","og_title":"Create a Cloud SQL Instance With gcloud in Cloud Shell | Prwatech","og_description":"Create and connect to a Cloud SQL instance using gcloud in Cloud Shell, with a real security warning the original steps leave out. Step by step process","og_url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2026-09-18T10:11:13+00:00","article_modified_time":"2026-09-19T15:34:54+00:00","og_image":[{"width":382,"height":139,"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-347.png","type":"image\/png"}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/","url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/","name":"Create a Cloud SQL Instance With gcloud in Cloud Shell | Prwatech","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-347.png","datePublished":"2026-09-18T10:11:13+00:00","dateModified":"2026-09-19T15:34:54+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Create and connect to a Cloud SQL instance using gcloud in Cloud Shell, with a real security warning the original steps leave out. Step by step process","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-347.png","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-347.png","width":382,"height":139},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/creating-cloud-sql-instance-using-cloud-shell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Creating Cloud SQL Instance using cloud shell"}]},{"@type":"WebSite","@id":"https:\/\/prwatech.in\/blog\/#website","url":"https:\/\/prwatech.in\/blog\/","name":"Prwatech","description":"Share Ideas, Start Something Good.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prwatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3","name":"Prwatech","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","caption":"Prwatech"},"url":"https:\/\/prwatech.in\/blog\/author\/prwatech123\/"}]}},"_links":{"self":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/8987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/comments?post=8987"}],"version-history":[{"count":6,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/8987\/revisions"}],"predecessor-version":[{"id":11808,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/8987\/revisions\/11808"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=8987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=8987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=8987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}