| ***Got a MySQL error? Read this before posting***
If you have a problem connecting to MySQL or see an error on your page similar to: Quote: |
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
| 99% of the time this is due to you using the wrong host to connect to MySQL with your script. You SHOULD be using the host "127.0.0.1" to connect to MySQL. You SHOULD NOT be using the host "localhost" to connect to MySQL.
You may find "localhost" works sometimes, but it will not work all the time due to the secure nature of our hosting filesystem. You must use the correct host in order to maintain an error free site.
Thank you.
__________________ . Matt
UnitedHosting Staff For official support please use our helpdesk at UnitedSupport.co.uk UnitedHosting proudly hosting more than 20,000 sites since 1998.
Last edited by UH-Matt : 16th September 2005 at 12:08 AM.
|