Ok here is a small guide on how to import your existing mysql database into Google Cloud SQL.
Export your database into a sql file.
If your on PHPMyAdmin, select your database and click export tab and export the tables as required.
Go into Google Cloud Console. And Select your Project.
Create a bucket on Google Cloud Storage.
Upload your MySQL database export .sql file into the created bucket.
Go into Cloud SQL section on the Google Cloud Console. And Select your instance.
Click the import button on the top bar.
Enter the path of the bucket you created on Google Cloud Storage and the .sql file you uploaded.
Important – Click the Show advanced options… link and enter your Google Cloud SQL database name in the given text box. (This is if your SQL file doesn’t specify Use Database statement.) – If you dont do this you will get an error saying “An unknown error occurred” Which is a bit cryptic, but now you know why you get it. 🙂
Click the Ok Button.
Click the Operations tab to see the progress.
Ok Now your database file is imported successfully. You can start working with your database in your app engine application.