简体   繁体   中英

Magento SQLSTATE[HY000]: General error: 2006 MySQL

I have this error:

SQLSTATE[HY000]: General error: 2006 MySQL server has gone away, query was: SELECT main_table .* FROM catalogrule AS main_table WHERE ( is_active = '1')

I am not able to add products it is very slow, getting down website?

How can I fix this?

Try to set the /etc/my.cnf as

[mysqld]
max_allowed_packet=16M
wait_timeout = 1800 
connect_timeout = 120

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM