Cloud SQL Export/Import

39 views
Skip to first unread message

Saurav Dhungana

unread,
Sep 29, 2021, 9:06:33 AM9/29/21
to Google Cloud SQL discuss
I have written a script that exports my mysql database dump file to a cloud storage bucket:

gcloud sql export sql cloud_sql_server_name gs://path/to/bucketl/filename.gz --database=database_name

This export seems to work and a compressed file is created on my bucket.

when I try to import this file to new database in the same instance, it gets imported without any errors. 
But when I connect to the new db,its empty, it doesn't contain any tables.

Please can some one help me.
This is part of my disaster recovery process.

Reply all
Reply to author
Forward
0 new messages