备份命令:
/tstcylq/mysql/bin/mysqldump -uroot -p123456 test > /root/mysql-data/test.sql
还原命令:
mysql -uroot -p123456 test < E:\test.sql --default-character-set=utf8mb4
源库和目标库的字符集一定要一直,避免一些奇怪的报错
备份命令:
/tstcylq/mysql/bin/mysqldump -uroot -p123456 test > /root/mysql-data/test.sql
还原命令:
mysql -uroot -p123456 test < E:\test.sql --default-character-set=utf8mb4
源库和目标库的字符集一定要一直,避免一些奇怪的报错