MYSQL出现此类错误是因为打开的文件数超过了my.cnf的--open-files-limit。
mysql> show variables like 'open%'; +------------------+-------+ | Variable_name | Value | +------------------+-------+ | open_files_limit | 1024 | +------------------+-------+ 1 row in set (0.00 sec)
open-files-limit选项无法在mysql命令行直接修改,必须在my.cnf中设定,最大值是65536。
mysql配置文件my.cnf添加:
open-files-limit = 65536
重启mysql
service mysqld restart
修改后
mysql> show variables like 'open%'; +------------------+-------+ | Variable_name | Value | +------------------+-------+ | open_files_limit | 65536 | +------------------+-------+ 1 row in set (0.00 sec)
来源:https://blog.csdn.net/xmallwood/article/details/9339985
本文链接:https://jeff.xin/post/100.html
--EOF--
发表于 2018-06-07 ,并被添加「 Mysql 」标签 。
Comments
发表评论:
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。