Mysql主从同步Last_IO_Errno:1236错误解决方法
16lz
2021-12-29
Mysql主从同步的Last_IO_Errno:1236错误是什么原因呢,我们要如何来解决这个问题呢?下面和小编一起来看看关于此问题的记录与解决办法。
<script>ec(2);</script>
Last_IO_Errno: 1236Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Slave can not handle replication events with the checksum that master is configured to log; the first event 'mysql-bin.000005' at 16750821, the last event read from '/usr/local/mysql/Binlog/mysql-bin.000005' at 16750821, the last byte read from '/usr/local/mysql/Binlog/mysql-bin.000005' at 120.'
主服务器由于上次php导致的宕机,升级到了最新版本的mysql(5.6.29),而从服务器我刚刚编译的时候使用的5.5.49这个版本的db,因此推断可能是由于这个问题导致的,没有去看官方文档,只是个人猜测。
版本不同导致的另外一个问题是:
[root@Backup tmp]# /usr/local/mysql/bin/mysql -uroot -p <./all.sql Enter password: ERROR 1064 (42000) at line 279: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'STATS_PERSISTENT=0' at line 11
slave临时跳过错误方法:
MySQL
mysql>slave stop; #stop slavemysql>SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;mysql>slave start; #start slave
vi /etc/my.cnf[mysqld]slave-skip-errors=1062,1053,1146 #跳过指定error no类型的错误#slave-skip-errors=all #跳过所有错误
更多相关文章
- android中HttpURLConnection调用getResponseCode()时崩溃 解决方
- Android空引用问题的解决方法——on a null object reference
- android读取assets大于1M文件的解决方法
- 几个Android小错误解决方法
- CheckBox android:paddingLeft 不兼容问题解决方法
- Android(安卓)Studio使用过程中遇到的问题(一)-- "value 2"异常解
- Eclipse中编译Android工程时出现的问题解决方法。
- Android(安卓)ListView滑动后背景变黑问题解决方法
- Android(安卓)ListView滑动后背景变黑问题解决方法