mysql - How to Merge Databases on Google Cloud SQL? -


i exploring google cloud sql , need have ability merge data bases continuous integration reasons cannot figure out how (on cloud sql instance).

the instance contains 3 databases: development, staging, , production.

i run simular command on server instance running mysql following:

mysqldump -n -t -u <myuser> --password=<mypassword> development | mysql -u <myuser> --password=<mypassword> staging 

if try run command via server instance has access (remote) db instance, following error:

mysqldump: got error: 1045 (28000): "access denied user 'myuser'@'localhost' (using password: yes)" when trying connect

i thinking need pass ip address in command(??) - not know how.

so question how connect google cloud sql instance via server instance has permissions access (remote) database server?

any appreciated!

-j

i needed pass -h <db-ip> in command.

i.e.:

mysqldump -n -t -u <myuser> -h <xxx.xxx.xx.xxx> -p<mypassword> development | mysql -u <myuser> -h <xxx.xxx.xx.xxx> -p<mypassword> staging 

Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -