admin管理员组文章数量:1187999
问题描述:
发现日志中总是报这么个warn:
Possibly consider using a shorter maxLifetime value.
解决思路:
其中的Dataxxxx中的xxxx是数据库端口号。根据日志中提示,应该是maxlifetime值太大,看项目中配置是默认的180000,参考其他帖子说maxlifetime小于数据库配置参数timeout应该不少于30,于是再次将以上两个值改为300。
改后如下:
mysql> show variables like "%timeout%";
+-----------------------------+----------+
| Variable_name | Value |
+-----------------------------+----------+
| connect_timeout | 10 |
| delayed_insert_timeout | 300 |
| have_statement_timeout | YES |
| innodb_flush_log_at_timeout | 1 |
| innodb_lock_wait_timeout | 20 |
| innodb_rollback_on_timeout | OFF |
| interactive_timeout | 300 |
| lock_wait_timeout | 31536000 |
| net_read_timeout | 30 |
| net_write_timeout | 60 |
| rpl_stop_slave_timeout | 31536000 |
| slave_net_timeout | 3600 |
| wait_timeout | 300 |
+-----------------------------+----------+
13 rows in set (0.00 sec)
问题解决!
本文标签: PossiblyshortermaxLifetime
版权声明:本文标题:Possibly consider using a shorter maxLifetime value.问题处理 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/biancheng/1738333761a2076530.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论