备份命令:
mysqldump -uroot -p --default-character-set=utf8 --hex-blob -R --log-error=/var/log/backup-log --single-transaction -B ccjf_data > ccjf_data_20151022.sql mysqldump --default-character-set=utf8 --hex-blob -R --master-data --log-error=/var/log/backup-log --single-transaction -uroot -p test hostall >zabbix_allhost.sql
导出表结构:
/export/servers/mysql/bin/mysqldump --default-character-set=utf8 --hex-blob -R -d --log-error=/var/log/backup-log --single-transaction -udbsadmin -pLh7l9ee1GChAdECnx7mlR8NlA -h10.190.70.5 -B lottery_gateway >lottery_gateway.sql
时间: 2024-11-08 21:28:39