我已经按照以下方式修改了/etc/mysql/my.cnf
[mysqld]
open-files-limit = 100000
[mysqld_safe]
open-files-limit = 100000
但是当我登录到mysql时,我没有看到这个变量发生任何改变。
mysql> SHOW VARIABLES LIKE 'open%';
+------------------+-------+
| Variable_name | Value |
+------------------+-------+
| open_files_limit | 1024 |
+------------------+-------+
1 row in set (0.00 sec)
我最初尝试使用open_files_limit,但在某个地方读到需要将下划线(_)替换为破折号(-)。
我正在使用ubuntu 15.10
。有什么帮助吗?
我也尝试了以下方法
http://duntuk.com/how-raise-ulimit-open-files-and-mysql-openfileslimit
http://serverfault.com/questions/440878/changing-open-files-limit-in-mysql-5-5
-------也对以下文件进行了更改
/etc/mysql/mysql.conf.d/mysqld.cnf
#
query_cache_limit = 1M
query_cache_size = 16M
open-files-limit = 15000
#
innodb_file_per_table = 1
,现在正试图修复 MySQL 可以打开的文件数量限制? - N.B.