Skip to content

Categories:

How to use mysqldump to dump and restore database

Dump:
mysqldump –all-databases -u [username] -p [password] -h [hostname] > mydb.sql

Restore:
mysqldump -u [username] -p [password] -h [hostname] < mydb.sql

Posted in 技术.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.