连接超时
Aborted connection 2519172 to db: 'zabbix' user: 'zabbix' host: 'xxx.xxx.xxx.xxx' (Got timeout reading communication packets)
解决办法: 修改配置文件 /etc/my.cnf
interactive_timeout = 120
wait_timeout = 120
在命令行中可以这样修改:
mysql>set global interactive_timeout = 120;
mysql>set global wait_timeout = 120;
日志文件太小
[ERROR] InnoDB: The age of the last checkpoint is 9924543, which excees the log group capacity 9433498.
在命令行查看log块内容
mysql>show engine innodb status \G
如果经常出现这类告警,可以将innodb_log_file_size参数调大
mysql> show engine innodb status\G select sleep(60); show engine innodb status\G
Log sequence number 1489416797668
...
Log sequence number 1489429728711
mysql> select (1489429728711-1489416797668)60/1024/1024;