mysqldump -u root -p --opt [database name] > [database name].sqlAfter the dump is performed, you are ready to transfer the database.
scp [database name].sql [username]@[servername]:path/to/database/A sample transfer might look like this:
scp newdatabase.sql user@example.com:~/After you connect, the database will be transferred to the new virtual private server.
mysql -u root -p newdatabase < /path/to/newdatabase.sqlWith that, your transfer via SCP will be complete.
Article ID: 185
Created On: Thu, Dec 26, 2013 at 10:21 PM
Last Updated On: Thu, Dec 26, 2013 at 10:21 PM
Authored by: ASPHostServer Administrator [asphostserver@gmail.com]
Online URL: http://faq.asphosthelpdesk.com/article.php?id=185