The script has worked so far. It was previously executed in 10 seconds, now it loads 30 seconds and gives an error 500 Internal Server Error or
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE [HY000]: General error: 2006 MySQL server has gone away' in /home/admin/web/site.com/public_html/sql.php 360 Stack trace: # 0 /home/admin/web/site.com/public_html/sql.php(410): PDOStatement-> execute (Array) # 1 {main} thrown in /home/admin/web/site.com/public_html/sql.php on line 410
Line 410:
$sql = "INSERT INTO table SET ".pdoSet($allowed,$values); $stm = $pdo->prepare($sql); $stm->execute($values); // 410 /etc/mysql/my.cnf added the following lines to the /etc/mysql/my.cnf file
max_allowed_packet=64M query_cache_limit=6M And edited such
wait_timeout=30=>3000 Now the parser works, but for some reason it runs for about 40-50 seconds, instead of 10 normal ones. What can be wrong?