我对/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
#发布于 2016-04-23 05:44:49
如果您通过突触管理器安装Mysql,那么在最新的ubuntu15.10版本上,从open_file_limit文件中增加my.cnf将无法工作。您需要进行以下更改。
1. Open /lib/systemd/system/mysql.service as super user
2. Add the following lines to the end of it:
LimitNOFILE=infinity
LimitMEMLOCK=infinity
3. Execute sudo systemctl daemon-reload
4. Restart mysql.https://stackoverflow.com/questions/35111698
复制相似问题