How to Back Up and Restore MySQL Databases on Linux

You are here:
Estimated reading time: < 1 min

To Back up all of your databases, run the following command:

$ mysqldump --all-databases > /root/all_databases.sql

The above command will dump a sql version of your database backup in the root directory.

Was this article helpful?
Dislike 0
Views: 64