php - Random MySQL errors? -


I have established an easy small script on a website. When there is no error in the localhost; However, when I'm hosting it on my VPS, I occasionally and purely get MySQL errors randomly and I think it is killing my traffic. What is happening due to bad VPS, or is there any other reason?

WARNING: mysql_fetch_row () parameter1 is expected to be processed, given in the boolean / home / freetrav / public_html / travian / GameEngine

WARNING: mysql_connect ( ) [Function.mysql-connect]: Can not connect to local MySQL

Server / '/var/lib/mysql/mysql.sock' (2) via socket / home / freetrav /public_html/travian/GameEngine/Database/db_MYSQL.php Can not connect to local MySQL server via socket '/ var / lib / mysql / mysql.sock' (2)

MySQL server has gone away

Are completely random and no one is permanent. They usually occur when many pages are open at one time, and they log out the existing account.

Looks like MySQL is crashing if you can see mysqld error log, which will confirm it.

Comments