How to migrate MySQL database from VPS to DreamCompute via SSH?



I’m trying to follow the instructions on this page:

However, this is not working. I’m executing the command on my DreamCompute server where the old host details are from my MySQL VPS page and the new host is my compute details.

However, I get errors like this:

Unknown MySQL server host '***.***.***.***:3306' (0)
mysqldump: Got errno 32 on write


ERROR 1130 (HY000): Host 'ip-***.***.***.***' is not allowed to connect to this MySQL server
mysqldump: Got errno 32 on write

I also followed the steps on this page as well:

added ip-***.***.***.*** and ***.***.***.*** as allowable hosts on my VPS database settings.

The *** . *** . *** . *** above is the IP address of my DreamCompute database server.

I looked up the DNS records and found my old host database IP and used the UFW firewall to allow this IP access to the 3306 mysql port on my DreamComputer server, but it still does not work and I’m not sure what to do next.

Kind regards


If you can you use the phpMyAdmin interface provided by DreamHost to access the database on the VPS, I’d take the dump from phpMyAdmin and restore that on your DreamCompute server.


Thanks for the reply. I figured out a 2-step command like the one below, which seems to work pretty nicely when executed on the DreamCompute server through SSH:

mysqldump -u remoteusername -p remotepassword -h databasename > dump.sql
mysql -u localusername -p localpassword databasename < dump.sql


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.