Exporting MySQL Data
1:Log into your server via SSH.
2:Using SSH, execute the following command:
Code:
mysqldump -p -u username database_name > dbname.sql
Provide password for database user and press enter The file dbname.sql now holds a backup of your database.
Import A MySQL Database
1: Start upload your .sql file to host if you dont have a database yet you can create from control panel.
2: Login to SSH.
3: Using SSH, navigate to the directory where your .sql file is.
4: perform following command:
Code:
mysql -p -u username database_name < file.sql