PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
Добавлено: 2016-02-25, 3:45:14
Вот такая ошибка. Что нужно поменять в настройках?
Additional uncaught exception thrown while handling exception.
Original
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away:
my.ncf:
key_buffer_size = 32M
key_buffer = 16M
innodb_buffer_pool_size = 868M
innodb_additional_mem_pool_size = 60M
innodb_log_buffer_size = 16M
innodb_flush_log_at_trx_commit = 2
innodb_autoextend_increment = 128M
innodb_log_file_size = 500M
innodb_log_buffer_size = 384M
open_files_limit = 26758
table_cache = 2000
thread_cache_size = 32
tmp_table_size = 256M
max_heap_table_size = 256M
query_cache_size = 128M
tmp_table_size = 256M
query_cache_limit = 16M
query_cache_type = 1
join_buffer_size = 512K
max_connections = 150
max_allowed_packet = 48M
wait_timeout = 600
read_buffer = 2M
write_buffer = 2M
read_rnd_buffer_size = 512K
sort_buffer_size = 20M
net_buffer_length = 16K
Additional uncaught exception thrown while handling exception.
Original
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away:
my.ncf:
key_buffer_size = 32M
key_buffer = 16M
innodb_buffer_pool_size = 868M
innodb_additional_mem_pool_size = 60M
innodb_log_buffer_size = 16M
innodb_flush_log_at_trx_commit = 2
innodb_autoextend_increment = 128M
innodb_log_file_size = 500M
innodb_log_buffer_size = 384M
open_files_limit = 26758
table_cache = 2000
thread_cache_size = 32
tmp_table_size = 256M
max_heap_table_size = 256M
query_cache_size = 128M
tmp_table_size = 256M
query_cache_limit = 16M
query_cache_type = 1
join_buffer_size = 512K
max_connections = 150
max_allowed_packet = 48M
wait_timeout = 600
read_buffer = 2M
write_buffer = 2M
read_rnd_buffer_size = 512K
sort_buffer_size = 20M
net_buffer_length = 16K