mysql線上操作常用命令
阿新 • • 發佈:2017-11-23
cte utf zabbix character mysq hex-blob col sin pre
備份命令:
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
mysql線上操作常用命令