I am in the process of moving my entire vbulliten site to a different server. So far the forums are working fine. The modules that I have generated, utilizing data read and manipulated from the DB are not though. I can not connect to my db.
This works on the old server.
PHP Code:
$mysqli = mysqli_connect("localhost",$username, $password, $dbname);
I have used "echo" to show me that the username, password, and dbname variables are set correctly.
On the new server though, I get this error:
Code:
mysqli_connect() [function.mysqli-connect]: (HY000/2002): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
What does this mean? Does anyone have ideas why this isn't working? What I can do to find out? or change?
Any help would be greatly appreciated.