开发者

I have root access to all my mysql databases. how can i export/import all the databases at once?

开发者 https://www.devze.com 2022-12-13 03:03 出处:网络
I have 开发者_如何学运维root access to all my mysql databases. how can i export/import all the databases at once?mysqldump can do it.

I have 开发者_如何学运维root access to all my mysql databases. how can i export/import all the databases at once?


mysqldump can do it.

mysqldump --all-databases >backupfile

to import

mysql < backupfile

You could also shut down the server and copy/tar/rsync the mysql data directory but the restore for this is potentially tricky and I would not suggest it.

0

精彩评论

暂无评论...
验证码 换一张
取 消