mysql高版本5.6到5.5或低版本复制中出现的错误
2017-10-23 16:55
615 查看
在高版本启动时,忘记配置binlog_checksum参数,会导致生成的binlog中有校验算法的日志,当从库版本低于主库,就会报错
看下面忘记添加参数时,解析的binlog
修改my.cnf文件或动态修改set global binlog_checksum=none 后,reset master,生成新的binlog
[root@st1 log]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 288
Server version: 5.6.38-log MySQL Community Server (GPL)
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> reset master;
Query OK, 0 rows affected (0.00 sec)
mysql> show master status;
+-------------------+----------+--------------+------------------+-------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set |
+-------------------+----------+--------------+------------------+-------------------+
| master-bin.000001 | 120 | | | |
+-------------------+----------+--------------+------------------+-------------------+
1 row in set (0.00 sec)
mysql> exit
Bye
再次看解析的binlog,已经没有crc32校验
看下面忘记添加参数时,解析的binlog
修改my.cnf文件或动态修改set global binlog_checksum=none 后,reset master,生成新的binlog
[root@st1 log]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 288
Server version: 5.6.38-log MySQL Community Server (GPL)
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> reset master;
Query OK, 0 rows affected (0.00 sec)
mysql> show master status;
+-------------------+----------+--------------+------------------+-------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set |
+-------------------+----------+--------------+------------------+-------------------+
| master-bin.000001 | 120 | | | |
+-------------------+----------+--------------+------------------+-------------------+
1 row in set (0.00 sec)
mysql> exit
Bye
再次看解析的binlog,已经没有crc32校验
相关文章推荐
- InnoSQL HA Suite的实现原理与配置说明 InnoSQL的VSR功能Virtual Sync Replication MySQL 5.5版本引入了半同步复制(semi-sync replicaiton)的功能 MySQL 5.6支持了crash safe功能
- 错误笔记:记录mysql版本5.5与5.6的一个不同
- mysql5.5和5.6版本更新内容
- MySQL 5.5/5.6复制
- mysql5.5和5.6版本间的坑
- 安装MYSQL详细教程 版本:mysql-installer-community-5.7.16.0 免安装版本和安装版本出现错误的解决
- MySQL 4.1/5.0/5.1/5.5/5.6各版本的主要区别整理
- MySQL 4.1/5.0/5.1/5.5/5.6/5.7各版本的主要区别
- MySQL5.5安装出现CMake错误找不到CMakelists.txt原因
- mysql从5.6版本导入5.5报错:Error Code : 1293 Incorrect table definition
- ubuntu14.04 mysql升级到5.7版本出现GPG error错误解决办法
- mysql5.5重新安装需要输入旧密码和新密码并最后一步出现错误
- 关于mysql 5.7 版本登录时出现错误 1045的随笔
- mysql5.6+版本主从设置(mysql5.5之后的主从设置跟5.5之前的设置有一些差距)
- MySQL-5.6版本GTID的主从复制
- 史上最详细MySQL5.5复制配置步骤,与以前版本的有所不同
- MySQL-5.6版本GTID的主从复制
- mysql 5.5升级5.6以上版本
- mysql 5.5和5.6版本关于timestamp插null和0的处理
- mysql 5.5和5.6版本关于timestamp not null类型字段关于null的处理