Select Page

To export MySQL database with command line:

jimlee@CRMServer:~$ cd Desktop
sudo mysqldump -u root -p yetiforce > dbexport.sql

After that, the databse will store in desktop and the file name is dbexport.sql

To import MySQL database with command line:

jimlee@CRMServer:~$ cd Desktop
sudo mysql -u username -p dbname < dbexport.sql