Linux CPanel / WHM
Datlinux | Webhosting Blog | Linux Cpanel/WHM blog | Linux blogs
Pages
Home
Sunday, March 9, 2014
How to Import/Export MySQL Databases with SSH
To export a MySQL database, access your Dedicated Server or VPS via SSH and run:
# mysqldump -u username -p database_name > dumpfile.sql
To import a MySQL Database, run:
# mysql -u username -p database_name < dumpfile.sql
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment