Try to import a Database using SSH but I receive a error message 2002

wordpress

#1

Im trying to import a database using SSH using the follow command:

mysql -u[user] -p mysql.misite.com [database] < data.sql

but i receive a Error 2002, any idea how to import the database using ssh?

Thanks.


#2

You will want to make sure the DNS for the hostname is pointing to DreamHost. Alternatively, you can use the IP for the hostname if the domain isn’t pointed to DreamHost.

We also have a help guide on importing your database via SSH: https://help.dreamhost.com/hc/en-us/articles/221614988-SSH-Importing-a-database

If you are still running into issues, please contact support from your panel here: https://panel.dreamhost.com/index.cgi?tree=support.msg&