To Export your database using the terminal, in Ubuntu enter the following command:
mysqldump -u {database_username} -p {database_name} > mysqlbackup.sql
You will be prompted for your MySQL password. Your database will then be downloaded.
To Import your database using the terminal in Ubuntu enter the following command:
mysql -u {database_username} -p {database_name} < mysqlbackup.sqlYou will be prompted for your MySQL password. Your database will then be imported.
No comments:
Post a Comment