Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /var/www/vhosts/ns342760.ip-188-165-218.eu/esinformacion.es/lib/database.php on line 35

Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /var/www/vhosts/ns342760.ip-188-165-218.eu/esinformacion.es/lib/database.php on line 36

Warning: mysql_query() expects parameter 2 to be resource, boolean given in /var/www/vhosts/ns342760.ip-188-165-218.eu/esinformacion.es/lib/database.php on line 88
Error number: 2002

SQL: select * from Telefon where Telefon = 902301000Error description: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
File name:

array(3) {
[0]=>
array(7) {
["file"]=>
string(76) "/var/www/vhosts/ns342760.ip-188-165-218.eu/esinformacion.es/lib/database.php"
["line"]=>
int(89)
["function"]=>
string(9) "trapError"
["class"]=>
string(8) "Database"
["object"]=>
object(Database)#1 (1) {
["m_Connection"]=>
bool(false)
}
["type"]=>
string(2) "->"
["args"]=>
array(3) {
[0]=>
&int(2002)
[1]=>
&string(47) "select * from Telefon where Telefon = 902301000"
[2]=>
&string(84) "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"
}
}
[1]=>
array(7) {
["file"]=>
string(75) "/var/www/vhosts/ns342760.ip-188-165-218.eu/esinformacion.es/lib/lib-web.php"
["line"]=>
int(47)
["function"]=>
string(12) "executeQuery"
["class"]=>
string(8) "Database"
["object"]=>
object(Database)#1 (1) {
["m_Connection"]=>
bool(false)
}
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
&string(47) "select * from Telefon where Telefon = 902301000"
}
}
[2]=>
array(4) {
["file"]=>
string(70) "/var/www/vhosts/ns342760.ip-188-165-218.eu/esinformacion.es/numero.php"
["line"]=>
int(10)
["function"]=>
string(10) "getTelefon"
["args"]=>
array(1) {
[0]=>
&string(9) "902301000"
}
}
}
se ha producido un error