小编use*_*601的帖子

MySQL open_files_limit - 无法更改此变量

我遇到了问题,因为我的open_files_limitfor mysql 只有1024.

Centos 7、MySQL 社区服务器 5.6.22-log

它实际上是一个专用于 WHM 服务器(远程 mysql)的 mysql 的 vps,但这应该无关紧要。


配置文件

my.cnf

[mysqld]
open_files_limit = 100000
open-files-limit = 100000 #I've read that the dashes are required on older versions, but I threw it in anyway.
innodb_buffer_pool_size = 600M
...

# and the same for mysqld_safe
[mysqld_safe]
open_files_limit = 100000
open-files-limit = 100000
...
Run Code Online (Sandbox Code Playgroud)

/etc/security/limits.conf

*       hard    nofile  100000
*       soft    nofile  100000
Run Code Online (Sandbox Code Playgroud)

命令输出

我的 root 操作系统 open_files_limit:

[root@mack ~]# ulimit …
Run Code Online (Sandbox Code Playgroud)

mysql

18
推荐指数
1
解决办法
4万
查看次数

标签 统计

mysql ×1