(root@localhost) 16:03:38 [(none)]> show slave status \G; Last_IO_Errno: 1593 Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work (or the --r…
在给mysql数据库备份时,报错: mysqldump: Got error: 145: Table '.\shengdaxcom\pre_forum_thread' is marked as crashed and should be repaired when using LOCK TABLES 如上错误的解决方法如下:1.进入数据库对该表进行检测: mysql> check tables pre_forum_thread;+------------------------------+--…
egg 连接 mysql 的 docker 容器,报错:Client does not support authentication protocol requested by server; consider upgrading MySQL client 解决办法: mysql 中执行如下语句: mysql> ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'yourPassword'; 附: 'root'@'loc…
错误原因: 当POST的数据超过 max_allowed_packet 就会报 MySQL server has gone away 的错误. 1.查看当前Mysql的 max_allowed_packet show global variables like 'max_allowed_packet'; 默认的 max_allowed_packet 是 1M ,也就是说提交的数据大于1M就会报错,我们要修改为16M比较好. 2.修改方法: ;…
参考官方文档: mysql可以为不同的客户端设置不同的sql_mode,并且每个应用能够设置他自己的会话级别的sql_mode.sql_mode会影响sql语法以及mysql显示数据的正确性. When working with InnoDB tables, consider also the innodb_strict_mode system variable. It enables additional error checks for InnoDB tables. 官方文档建议:当使用in…