Export A database Dump Terminal MySql

To export a database use this command in terminal.

mysqldump -u [username] -p [database] > db_backup.sql

If that does not work for you then you may have created a user in cPanel or some other website management application. You may have to use the –no-tablespaces tag. The syntax looks like this

mysqldump --no-tablespaces -h localhost -u database_name -p user_name > bd_backup.sql

Export A database Dump Terminal MySql was last modified: November 5th, 2021 by Maximus Mccullough

Export A database Dump Terminal MySql

Leave a Reply

Your email address will not be published.