100511 22:30:01 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
100511 22:30:01 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000038' at postion 3406
100511 22:31:54  InnoDB: ERROR: the age of the last checkpoint is 60394436,
InnoDB: which exceeds the log group capacity 60394292.
InnoDB: If you are using big BLOB or TEXT rows, you must set the
InnoDB: combined size of log files at least 10 times bigger than the
InnoDB: largest such row.ServerA  <---> ServerB的双向复制1) 一天总有几次Lost connection to MySQL server during query ( server_errno=2013)的错误,请问这个错误是因为网络不稳定造成的么?2) InnoDB的这个错误对现有数据有影响么?会造成两个服务器之间的数据不一致么?解决方法是增加innodb_log_file_size么?对已经运行了很久的服务器如何增加这个文件大小?
谢谢。

解决方案 »

  1.   

    应该不是网络不稳定造成的。
    innodb_log_file_size应该是静态参数,只能停mysql,改参数文件。从上边的错误信息提示,应该是把这个大小调成最大行长度的10倍以上。总之要比以前要调得大一些。
      

  2.   

    1) 那是啥问题造成的,怎么解决呢?
    2) 如何调整,停下mysql,改my.cnf,重启就搞定了?
      

  3.   

    2) 是可以停止mysql, 移走ib_logfile*, 修改my.cnf, 重启搞定问题是2)这个错误对数据master/slave上的数据有影响么?
    1) 日志中基本上每5分钟一次,my.cnf中只有interactive-timeout = 300跟5分钟沾边100511 22:28:11 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 22:28:11 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 22:33:12 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 22:33:12 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 22:38:12 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 22:38:12 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 22:43:13 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 22:43:13 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 22:48:14 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 22:48:14 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 22:53:15 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 22:53:15 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 22:58:15 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 22:58:15 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 23:03:16 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 23:03:16 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 23:08:17 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 23:08:17 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 23:13:18 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 23:13:18 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 23:18:19 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 23:18:19 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 23:23:20 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 23:23:20 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 23:28:20 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 23:28:20 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 23:33:21 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 23:33:21 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 23:38:22 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 23:38:22 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 23:43:23 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 23:43:23 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 23:48:24 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 23:48:24 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 23:53:24 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 23:53:24 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100511 23:58:25 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100511 23:58:25 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100512  0:03:26 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100512  0:03:26 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100512  0:08:27 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100512  0:08:27 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100512  0:13:28 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100512  0:13:28 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100512  0:18:29 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100512  0:18:29 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100512  0:23:29 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100512  0:23:29 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100512  0:28:30 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100512  0:28:30 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
    100512  0:33:31 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
    100512  0:33:31 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000007' at postion 106
      

  4.   

    遇到同样问题 是执行sql时遇到的问题 该如何解决