Can not connect to local MySQL server through sock


#1

I installed a script and I give this error:
Warning: mysql_connect () [function.mysql-connect]: Can not connect to local MySQL server through socket ‘/ var / run / mysqld / mysqld.sock’ (2)
How can I solve?


#2

Try to specify the hostname.

You can check the hostname of your MySQL server via DH panel --> Goodies --> Manage MySQL

$50 off and 3 free domains with code: [color=#CC0000]DH3[/color] Sign Up NOW or More Codes Here


#3

localhost won’t work you need to give the name of your database host.


Somewhere, something incredible is waiting to be known.
Sagan