I am running this version of Mysql
Ver 14.14 Distrib 5.6.24, for debian-linux-gnu (x86_64)
On this version of Ubuntu
Distributor ID: Ubuntu
Description: Ubuntu 15.04
Release: 15.04
Codename: vivid
This is the config I set for Mysql:
key_buffer_size = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
innodb_buffer_pool_size=20G
innodb_log_buffer_size=16M
tmp_table_size = 32M
max_heap_table_size = 32M
open-files-limit=4510
max_connections=500
myisam-recover = BACKUP
query_cache_type=1
query_cache_limit = 32M
query_cache_size = 32M
These are the warnings I keep getting when starting MYSQL:
2015-06-17 17:28:53 26720 [Warning] Buffered warning: Could not increase number
of max_open_files to more than 1024 (request: 4510)
2015-06-17 17:28:53 26720 [Warning] Buffered warning: Changed limits: max_connections:
214 (requested 500)
2015-06-17 17:28:53 26720 [Warning] Buffered warning: Changed limits: table_open_cache:
400 (requested 2000)
I already tried these steps:
1) Adding this to /etc/security/limits.conf
mysql soft nofile 65535
mysql hard no file 65535
2) Adding this to /etc/pam.d/common-auth
and /etc/pam.d/commom-session
session required pam_limits.so
3) Add this to /etc/mysql/mysql.conf.d/mysqld.cnf
open-files-limit=4510 or open_files_limit=4510
None of these have worked and I am still not able to raise the mysql max connections to 500.
I'd really appreciate some help at this point.
Thanks a lot in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…