The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Database error - can't connect to local MySQL server through socket
Does this error just happen or does it mean some one has been messing with the site?
<!-- Database error in vBulletin : mysqli_real_connect() [<a href='function.mysqli-real-connect'>function.mysqli-real-connect</a>]: (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) /home/----------/public_html/includes/class_core.php on line 1138 MySQL Error : Error Number : Request Date : Monday, May 27th 2013 @ 06:37:23 PM Error Date : Monday, May 27th 2013 @ 06:37:23 PM Script : http://-------------.com/admincp/index.php Referrer : IP Address : 175.35.66.88 Username : Classname : vB_Database_MySQLi MySQL Version : --> --------------- Added [DATE]1369698881[/DATE] at [TIME]1369698881[/TIME] --------------- I found this answer Quote:
What if I can't contact my host ? |
#2
|
|||
|
|||
When connecting to a MySQL server located on the local system, the mysql client connects through a local file called a socket instead of connecting to the localhost loopback address 127.0.0.1. For the mysql client, the default location of this socket file is /tmp/mysql.sock. However, for a variety of reasons, many MySQL installations place this socket file somewhere else like /var/lib/mysql/mysql.sock.
While it is possible to make this work by specifying the socket file directly in the mysql client command. Code:
mysql --socket=/var/lib/mysql/mysql.sock ... You can make a simple change to the MySQL configuration file /etc/my.cnf that will permanently set the socket file used by the mysql client. After making a backup copy of /etc/my.cnf, open it in your favorite editor. The file is divided into sections such as.. Code:
[mysqld] datadir=/usr/local/mysql/data socket=/var/lib/mysql/mysql.sock Code:
[mysql.server] user=mysql basedir=/usr/local/mysql Code:
[client] socket=/var/lib/mysql/mysql.sock |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|