Answer the question
In order to leave comments, you need to log in
How to increase Magento connection timeout?
When generating a sitemap file on Magento, it gives an error:
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away, query was: SELECT `main_table`.`page_id`, `main_table`.`identifier` AS `url` FROM `cms_page` AS `main_table` INNER JOIN `cms_page_store` AS `store_table` ON main_table.page_id=store_table.page_id WHERE (main_table.is_active=1) AND (store_table.store_id IN(0, '1'))
mysql_query("SET GLOBAL connect_timeout=28800")
Answer the question
In order to leave comments, you need to log in
You can copy the file lib/Varien/Db/Adapter/Pdo/Mysql.php to app/local/Varien/Db/Adapter/Pdo/Mysql.php and run $this->_connection->query("SET GLOBAL connect_timeout=28800");, it is better to write such things in my.cnf. But it seems to me that you have a problem in something else, 8000 products are not enough.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question