Maison >base de données >tutoriel mysql >Mysql 备份_MySQL
mysqldump
备份table
/usr/local/mysql/bin/mysqldump -h 192.168.0.123 -uyourmysql_user -p"yourpasswd" -B yourdatabase --tables yourtable > /tmp/test.sql
备份database
/usr/local/mysql/bin/mysqldump -h 192.168.0.123 -uyourmysql_user -p"yourpasswd" -B yourdatabase > /tmp/test.sql