C
CesarV
Guest
Hi. I'm having problems with Plesk 9.2.3 Linux. At any moment the server gives the message: ERROR: PleskFatalException
Unable to connect to database: mysql_connect () [<a href='function.mysql-connect'> function.mysql-connect </ a>]: Too many connections
The configuration of MySQL is as follows:
[mysqld]
set-variable = local-infile = 0
datadir = / var / lib / mysql
socket = / var / lib / mysql / mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# Clients (those using the mysqlclient10 compatibility package).
old_passwords = 1
[mysql.server]
user = mysql
basedir = / var / lib
[mysqld_safe]
log-error = / var / log / mysqld.log
pid-file = / var / run / mysqld / mysqld.pid
set-variable = key_buffer = 512M
set-variable = max_allowed_packet = 1M
set-variable = table_cache 512
set-variable = sort_buffer = 1M
set-variable = read_buffer_size = 1M
set-variable = read_rnd_buffer_size = 12M
set-variable = record_buffer = 1M
set-variable = myisam_sort_buffer_size = 128M
set-variable = thread_cache = 12
set-variable = thread_concurrency = 10
set-variable = max_connections = 20000
set-variable = net_write_timeout = 120
set-variable = connect_timeout = 30
set-variable = wait_timeout = 60
skip-innodb
[mysqldump]
quick
set-variable = max_allowed_packet = 16M
[mysql]
[isamchk]
set-variable = key_buffer = 128M
set-variable = sort_buffer_size = 128M
set-variable = read_buffer = 2M
set-variable = write_buffer = 2M
[myisamchk]
set-variable = key_buffer = 128M
set-variable = sort_buffer_size = 128M
set-variable = read_buffer = 2M
set-variable = write_buffer = 2M
[mysqlhotcopy]
set-variable = interactive-timeout
How can I solve the problem? How many connections Mysql default in Plesk? How do I optimize to resolve once and for all this problem?
Thank you.
Unable to connect to database: mysql_connect () [<a href='function.mysql-connect'> function.mysql-connect </ a>]: Too many connections
The configuration of MySQL is as follows:
[mysqld]
set-variable = local-infile = 0
datadir = / var / lib / mysql
socket = / var / lib / mysql / mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# Clients (those using the mysqlclient10 compatibility package).
old_passwords = 1
[mysql.server]
user = mysql
basedir = / var / lib
[mysqld_safe]
log-error = / var / log / mysqld.log
pid-file = / var / run / mysqld / mysqld.pid
set-variable = key_buffer = 512M
set-variable = max_allowed_packet = 1M
set-variable = table_cache 512
set-variable = sort_buffer = 1M
set-variable = read_buffer_size = 1M
set-variable = read_rnd_buffer_size = 12M
set-variable = record_buffer = 1M
set-variable = myisam_sort_buffer_size = 128M
set-variable = thread_cache = 12
set-variable = thread_concurrency = 10
set-variable = max_connections = 20000
set-variable = net_write_timeout = 120
set-variable = connect_timeout = 30
set-variable = wait_timeout = 60
skip-innodb
[mysqldump]
quick
set-variable = max_allowed_packet = 16M
[mysql]
[isamchk]
set-variable = key_buffer = 128M
set-variable = sort_buffer_size = 128M
set-variable = read_buffer = 2M
set-variable = write_buffer = 2M
[myisamchk]
set-variable = key_buffer = 128M
set-variable = sort_buffer_size = 128M
set-variable = read_buffer = 2M
set-variable = write_buffer = 2M
[mysqlhotcopy]
set-variable = interactive-timeout
How can I solve the problem? How many connections Mysql default in Plesk? How do I optimize to resolve once and for all this problem?
Thank you.