Apart from the databases we create on Cloud SQL instances, we can also import other databases from other sources (otherwise nobody would ever switch to Cloud SQL in the first place!):
- We can download one of the sample databases from the official MySQL website using the wget command:
wget https://codeload.github.com/datacharmer/test_db/zip/master -O sampledb.zip
- After downloading you will have a sampledb.zip file. Unzip it. This will create a test-db-master directory in your current working directory.
- Navigate there using the cd command and find employees.sql using the ls command.
- After examining this file you will find that it contains a number of SQL statements to drop existing databases and recreate the database ...