当前位置:Gxlcms > 数据库问题 > MySQL 重启提示超出可打开文件数限制|Buffered warning: Changed limits: max_open_files: 1024

MySQL 重启提示超出可打开文件数限制|Buffered warning: Changed limits: max_open_files: 1024

时间:2021-07-01 10:21:17 帮助过:17人阅读

Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (2)"

再看看 MySQL 的日志,发现原来超过限制了。

190314 11:18:08 mysqld_safe mysqld restarted
2019-03-14 11:18:09 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-03-14 11:18:09 0 [Note] /usr/sbin/mysqld (mysqld 5.6.34) starting as process 16180 ...
2019-03-14 11:18:09 16180 [Warning] Buffered warning: Changed limits: max_open_files: 1024 (requested 5000)

2019-03-14 11:18:09 16180 [Warning] Buffered warning: Changed limits: table_open_cache: 431 (requested 2000)

既然看到问题,先网上搜搜别人怎么解决的。

都在说修改系统的文件数限制,ulimit -a 一看,65535,对的呀。

怪事,MySQL 也有限制,看一下

show variables like %files%;

果然是 1024

修改修改

重启 MySQL

 

MySQL 重启提示超出可打开文件数限制|Buffered warning: Changed limits: max_open_files: 1024

标签:more   val   ase   server   mes   linux   def   ...   process   

人气教程排行