Emery Hosting
Please Login or Register

Knowledgebase

How to Import A MySQL Database through SSH?

To import a MySQL dump, first upload the dump file to your web space via FTP.
Once the file is in your web space, please login to your shell account via SSH and
run this command:

mysql -u db_username -p db_name < /home/username/public_html/dumpfile.sql

Enter password:
mysql>


Please replace this information with the MySQL login data shown in your
Control Panel.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Creating a database (Views: 82)
What is MySQL? (Views: 108)

Powered by WHMCompleteSolution

Quick Navigation

Client Login

Email

Password

Remember Me

Search



Follow Us on Twitter