简体   繁体   中英

how to restore database in mysql?

I am using sqlyog in office. But at my home I have mysql gui. now how can I backup a database from sqlyog and restore it mysql gui? any idea please

Why over complicate things?

Create backup

mysqldump -u <user> -p<password> <database> > backup.sql

Restore

mysql -u <user> -p<password> <database> < backup.sql

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM