Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/storage/d/fe/36/rosasweyh/public_html/inc/php/mysql.php on line 10

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/storage/d/fe/36/rosasweyh/public_html/inc/php/mysql.php on line 11

Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/storage/d/fe/36/rosasweyh/public_html/inc/php/mysql.php on line 13

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/storage/d/fe/36/rosasweyh/public_html/inc/php/mysql.php on line 13

Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/storage/d/fe/36/rosasweyh/public_html/inc/php/functions.php on line 50

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/storage/d/fe/36/rosasweyh/public_html/inc/php/functions.php on line 50
There is an error on the SQL command.

SQL:
insert into log (log_datahora,log_ip) values (now(),'54.166.170.216')

Error:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)