
01-04-2006, 08:05 PM
|
 |
Thinking outside the box
|
|
Join Date: Sep 2004
Location: Cape Breton
Posts: 4,574
|
|
|
Importing and Exporting Your MySQL Databases via SSH
Import via SSH:- Upload the .sql file to your home directory (where public_html, public_ftp, and mail reside.)
- Login via SSH (I recommend PuTTY for windows and Mac OS X has it's Terminal application, and linux has it's own also.)
- In SSH type:
- mysql -uPutYourUserHere -pPutYourPasswordHere PutYourUserHere_databaseName < database.sql
NOTE: That is a one line command.
Export/dump The Database
Export/dump via SSH: - Login via SSH (I recommend PuTTY for windows and Mac OS X has it's Terminal application, and Linux has it's own also.)
- In SSH type in the following command:
mysqldump -uPutYourUserHERE -pPutYourPasswordHERE PutYourUserHERE_databasename > database.sql
__________________

|