工具链接:http://pan.baidu.com/s/1hrU3hgK
-
[root@Yun-MySQL02 lib64]#/soft/mysqlbinlog -vv --start-position=331 -B --skip-gtids /databak/3306/mysql-bin.000043|/usr/local/mysql/bin/mysql -uroot -p`cat /etc/sqlpass ` -P3306 -h127.0.0.1 test
-
---如果开启了gtid的最好使用skip-gtids 不然会报错
[root@Yun-MySQL02 lib64]# /usr/local/mysql/bin/mysql -uroot -p`cat /etc/sqlpass ` -P3306 -h127.0.0.1 test<re.sql
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1782 (HY000) at line 11: @@SESSION.GTID_NEXT cannot be set to ANONYMOUS when @@GLOBAL.GTID_MODE = ON.
如果报
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found
参考文档:https://www.aliyun.com/zixun/content/2_6_518744.html
</re.sql
其他参数参考:http://www.innomysql.com/article/25769.html