{"id":9001,"date":"2026-09-18T10:20:53","date_gmt":"2026-09-18T10:20:53","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=9001"},"modified":"2026-09-19T15:47:46","modified_gmt":"2026-09-19T15:47:46","slug":"working-with-cloud-sql","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/","title":{"rendered":"Working with cloud SQL"},"content":{"rendered":"\r\n<h1>Loading and Querying Real Data in Cloud SQL<\/h1>\r\n<p class=\"wp-block-paragraph\">This picks up with an existing Cloud SQL for MySQL instance and puts it to actual use, creating a database, loading a real dataset of New York taxi trips into it from two CSV files, then running a series of analytical queries against it directly from the mysql command line client. If you do not have an instance running yet, the Creating Cloud SQL Instance Using Cloud Shell guide covers that first step.<\/p>\r\n<p>Doing this through the mysql client instead of a graphical tool keeps everything in one place, the same Cloud Shell session that created the instance, and every command here is something you could drop directly into a script later. It is also simply a fast way to get comfortable with real SQL against a real, imperfect dataset, complete with the zero fare rows and zero distance trips you will filter out along the way.<\/p>\r\n<p>This walks through creating the database and its table, importing both CSV files into it, then running six queries that explore what is actually in the data.<\/p>\r\n<h2>Step by Step Process of Loading and Querying Real Data in Cloud SQL<\/h2>\r\n<h3>Step One: Set Your Variables<\/h3>\r\n<p>Paste these one at a time, replacing the IP address placeholder with your actual instance&#8217;s IP address:<\/p>\r\n<p>export PROJECT_ID=$(gcloud info &#8211;format=&#8221;value(config.project)&#8221;)<br \/>echo $PROJECT_ID<br \/><br \/>export BUCKET=${PROJECT_ID}-ml<br \/>echo $BUCKET<br \/><br \/>MYSQL=IP_ADDRESS<br \/>echo $MYSQL<\/p>\r\n<p>Each export line saves a value into a variable, and each echo line prints it back so you can confirm it is correct before moving on.<\/p>\r\n<h3>Step Two: Connect to MySQL<\/h3>\r\n<p>mysql &#8211;host=$MYSQL &#8211;user=root &#8211;password<\/p>\r\n<p>Enter your password when prompted. It will not show on screen as you type it, this is normal.<\/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-9002\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-359.png\" alt=\"\" width=\"834\" height=\"381\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-359.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-359-300x137.png 300w\" sizes=\"auto, (max-width: 834px) 100vw, 834px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Three: Create a Database<\/h3>\r\n<p class=\"wp-block-paragraph\">create database if not exists bts;<br \/>use bts;<\/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-9003\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-360.png\" alt=\"\" width=\"463\" height=\"154\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-360.png 358w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-360-300x100.png 300w\" sizes=\"auto, (max-width: 463px) 100vw, 463px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Four: Create the Trips Table<\/h3>\r\n<p class=\"wp-block-paragraph\">create table trips (<br \/>\u00a0\u00a0vendor_id VARCHAR(16),<br \/>\u00a0\u00a0pickup_datetime DATETIME,<br \/>\u00a0\u00a0dropoff_datetime DATETIME,<br \/>\u00a0\u00a0passenger_count INT,<br \/>\u00a0\u00a0trip_distance FLOAT,<br \/>\u00a0\u00a0rate_code VARCHAR(16),<br \/>\u00a0\u00a0store_and_fwd_flag VARCHAR(16),<br \/>\u00a0\u00a0payment_type VARCHAR(16),<br \/>\u00a0\u00a0fare_amount FLOAT,<br \/>\u00a0\u00a0extra FLOAT,<br \/>\u00a0\u00a0mta_tax FLOAT,<br \/>\u00a0\u00a0tip_amount FLOAT,<br \/>\u00a0\u00a0tolls_amount FLOAT,<br \/>\u00a0\u00a0imp_surcharge FLOAT,<br \/>\u00a0\u00a0total_amount FLOAT,<br \/>\u00a0\u00a0pickup_location_id VARCHAR(16),<br \/>\u00a0\u00a0dropoff_location_id VARCHAR(16)<br \/>);<\/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-9004\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-361.png\" alt=\"\" width=\"376\" height=\"400\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-361.png 327w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-361-282x300.png 282w\" sizes=\"auto, (max-width: 376px) 100vw, 376px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Exit the mysql client to go back to the plain Cloud Shell prompt:<\/p>\r\n<p>exit<\/p>\r\n<h3>Step Five: Copy the Sample Data Files<\/h3>\r\n<p>gsutil cp gs:\/\/cloud-training\/OCBL013\/nyc_tlc_yellow_trips_2018_subset_1.csv trips.csv-1<br \/>gsutil cp gs:\/\/cloud-training\/OCBL013\/nyc_tlc_yellow_trips_2018_subset_2.csv trips.csv-2<\/p>\r\n<p>This copies two CSV files of sample taxi trip data from a public training bucket into your Cloud Shell home directory.<\/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-9005\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-362.png\" alt=\"\" width=\"807\" height=\"191\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-362.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-362-300x71.png 300w\" sizes=\"auto, (max-width: 807px) 100vw, 807px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Six: Check Both Files<\/h3>\r\n<p class=\"wp-block-paragraph\">Open the first file in the nano editor to confirm it copied correctly. Press control x to close it.<\/p>\r\n<p>nano trips.csv-1<\/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-9006\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-363.png\" alt=\"\" width=\"851\" height=\"80\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-363.png 553w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-363-300x28.png 300w\" sizes=\"auto, (max-width: 851px) 100vw, 851px\" \/><\/figure>\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-9007\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-364.png\" alt=\"\" width=\"695\" height=\"253\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-364.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-364-300x109.png 300w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Do the same for the second file:<\/p>\r\n<p>nano trips.csv-2<\/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-9008\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-365.png\" alt=\"\" width=\"843\" height=\"79\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-365.png 544w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-365-300x28.png 300w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><\/figure>\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-9009\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-366.png\" alt=\"\" width=\"712\" height=\"350\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-366.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-366-300x148.png 300w\" sizes=\"auto, (max-width: 712px) 100vw, 712px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Seven: Import Both Files Into the Table<\/h3>\r\n<p class=\"wp-block-paragraph\">mysqlimport &#8211;local &#8211;host=$MYSQL &#8211;user=root &#8211;password &#8211;ignore-lines=1 &#8211;fields-terminated-by=&#8217;,&#8217; bts trips.csv-*<\/p>\r\n<p>The ignore lines flag skips each file&#8217;s header row, and the wildcard at the end tells mysqlimport to pick up both trips.csv-1 and trips.csv-2 in one command rather than importing them separately.<\/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-9010\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-367.png\" alt=\"\" width=\"882\" height=\"113\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-367.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-367-300x39.png 300w\" sizes=\"auto, (max-width: 882px) 100vw, 882px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Eight: Reconnect and Select the Database<\/h3>\r\n<p class=\"wp-block-paragraph\">mysql &#8211;host=$MYSQL &#8211;user=root &#8211;password<\/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-9011\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-368.png\" alt=\"\" width=\"721\" height=\"260\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-368.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-368-300x108.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">use bts;<\/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-9012\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-369.png\" alt=\"\" width=\"754\" height=\"142\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-369.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-369-300x57.png 300w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Nine: Explore the Data<\/h3>\r\n<p class=\"wp-block-paragraph\">A first look at which pickup locations actually appear in the data:<\/p>\r\n<p>select distinct(pickup_location_id) from trips limit 5;<\/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-9013\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-370.png\" alt=\"\" width=\"622\" height=\"252\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-370.png 617w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-370-300x122.png 300w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The shortest and longest trip distances in the dataset:<\/p>\r\n<p>select<br \/>\u00a0\u00a0max(trip_distance),<br \/>\u00a0\u00a0min(trip_distance)<br \/>from trips;<\/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-9014\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-371.png\" alt=\"\" width=\"513\" height=\"263\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-371.png 451w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-371-300x154.png 300w\" sizes=\"auto, (max-width: 513px) 100vw, 513px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">How many trips are recorded with zero distance, which is worth knowing before trusting any distance based analysis on this data:<\/p>\r\n<p>select count(*) from trips where trip_distance=0;<\/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-9015\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-372.png\" alt=\"\" width=\"669\" height=\"210\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-372.png 567w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-372-300x94.png 300w\" sizes=\"auto, (max-width: 669px) 100vw, 669px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The same check for zero fare trips:<\/p>\r\n<p>select count(*) from trips where fare_amount=0;<\/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-9016\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-373.png\" alt=\"\" width=\"685\" height=\"227\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-373.png 549w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-373-300x99.png 300w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A breakdown of how many trips used each payment type:<\/p>\r\n<p>select<br \/>\u00a0\u00a0payment_type,<br \/>\u00a0\u00a0count(*) from trips<br \/>group by payment_type;<\/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-9017\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-374.png\" alt=\"\" width=\"347\" height=\"308\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-374.png 319w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-374-300x266.png 300w\" sizes=\"auto, (max-width: 347px) 100vw, 347px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Confirming the table exists in the database:<\/p>\r\n<p>show tables;<\/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-9018\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-375.png\" alt=\"\" width=\"300\" height=\"210\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The table&#8217;s full column structure:<\/p>\r\n<p>desc trips;<\/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-9019\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-376.png\" alt=\"\" width=\"628\" height=\"433\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-376.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-376-300x207.png 300w\" sizes=\"auto, (max-width: 628px) 100vw, 628px\" \/><\/figure>\r\n\r\n\r\n\r\n<h2>Common Mistakes to Avoid<\/h2>\r\n<ul>\r\n<li>Skipping the zero distance and zero fare checks before running further analysis. Real world data almost always has rows like this, and ignoring them can quietly skew an average or a total.<\/li>\r\n<li>Copying commands with the wrong dash character. If a command fails with an unrecognized flag, retype the flags rather than assuming the command is wrong.<\/li>\r\n<li>Forgetting the wildcard when importing multiple files. Without trips.csv-* at the end, mysqlimport only picks up a single file, not both.<\/li>\r\n<li>Running these commands without an instance&#8217;s IP address on hand. Get that from the Creating Cloud SQL Instance Using Cloud Shell guide first if you have not already.<\/li>\r\n<\/ul>\r\n<p class=\"wp-block-paragraph\">That covers loading a real dataset into Cloud SQL and querying it directly with the mysql client. To go further, explore <a href=\"https:\/\/prwatech.in\/gcp-training-institutes-in-pune\/\"><strong><b>Prwatech&#8217;s Google Cloud training<\/b><\/strong><\/a>\u00a0program, which includes placement assistance.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Loading and Querying Real Data in Cloud SQL This picks up with an existing Cloud SQL for MySQL instance and puts it to actual use, creating a database, loading a real dataset of New York taxi trips into it from two CSV files, then running a series of analytical queries against it directly from the [&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":[1416,1419,1417,1418,605,699,700,984,617,683,684,685,611,1400,692],"class_list":["post-9001","post","type-post","status-publish","format-standard","hentry","category-cloud-sql","category-google-cloud-platform","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-gcp-course","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>Loading and Querying Real Data in Cloud SQL With MySQL<\/title>\n<meta name=\"description\" content=\"Load a real taxi trip dataset into Cloud SQL and run analytical queries against it using the mysql client, with every command corrected. 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\/working-with-cloud-sql\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Loading and Querying Real Data in Cloud SQL With MySQL\" \/>\n<meta property=\"og:description\" content=\"Load a real taxi trip dataset into Cloud SQL and run analytical queries against it using the mysql client, with every command corrected. Step by step process\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/\" \/>\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:20:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-19T15:47:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-359.png\" \/>\n\t<meta property=\"og:image:width\" content=\"628\" \/>\n\t<meta property=\"og:image:height\" content=\"287\" \/>\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=\"7 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\/working-with-cloud-sql\/\",\"url\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/\",\"name\":\"Loading and Querying Real Data in Cloud SQL With MySQL\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-359.png\",\"datePublished\":\"2026-09-18T10:20:53+00:00\",\"dateModified\":\"2026-09-19T15:47:46+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Load a real taxi trip dataset into Cloud SQL and run analytical queries against it using the mysql client, with every command corrected. Step by step process\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-359.png\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-359.png\",\"width\":628,\"height\":287},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Working with cloud SQL\"}]},{\"@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":"Loading and Querying Real Data in Cloud SQL With MySQL","description":"Load a real taxi trip dataset into Cloud SQL and run analytical queries against it using the mysql client, with every command corrected. 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\/working-with-cloud-sql\/","og_locale":"en_US","og_type":"article","og_title":"Loading and Querying Real Data in Cloud SQL With MySQL","og_description":"Load a real taxi trip dataset into Cloud SQL and run analytical queries against it using the mysql client, with every command corrected. Step by step process","og_url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2026-09-18T10:20:53+00:00","article_modified_time":"2026-09-19T15:47:46+00:00","og_image":[{"width":628,"height":287,"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-359.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":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/","url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/","name":"Loading and Querying Real Data in Cloud SQL With MySQL","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-359.png","datePublished":"2026-09-18T10:20:53+00:00","dateModified":"2026-09-19T15:47:46+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Load a real taxi trip dataset into Cloud SQL and run analytical queries against it using the mysql client, with every command corrected. Step by step process","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-359.png","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-359.png","width":628,"height":287},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-sql\/working-with-cloud-sql\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Working with cloud SQL"}]},{"@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\/9001","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=9001"}],"version-history":[{"count":7,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/9001\/revisions"}],"predecessor-version":[{"id":11811,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/9001\/revisions\/11811"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=9001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=9001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=9001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}