Backup multiple mysql databases
-- Backup multiple databases
mysql configurationintermediate
by MYSQL
13 views
-- Backup multiple databases
123456
For example, if you want to take backup of both sampledb and newdb database, execute the mysqldump as shown below:
[root@localhost]#
mysqldump –u root –p --databases sampled newdb > /tmp/dbdump.sql
We cannot take backup of information_schema and performance_schema databases as these are metadata databases.
root#
mysqldump -u root -p --all-databases > all-database.sqlPlease to add comments
No comments yet. Be the first to comment!