You are Here: FAQ ->Scripting and Programming Languages->SSH (Secure Shell)->Article #7


WebHosting 5.0 This article is for 1&1 Linux WebHosting only.


How to import a database to MySQL using SSH



Please access the following information from your Control Panel:
MySQL Host Name:
Username:
Password:
Database Name:

Follow the instructions in FAQ: Where can I find the necessary
information to connect to MySQL Database?


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:

myShell:~ > mysql -h dbxx.perfora.net -u dboxxxxxxxx -p dbxxxxxxxx < dump_file.sql
Enter password:
mysql>


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


Print Article
How useful was this article?
(From 5 = Very Useful to 1 = Not useful at all):
1 2 3 4 5