Can't connect to local
MySQL
#2002 - Can't connect to local
MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
This consists of a connection error on the
MySQL server. This is a common problem.
MySQL with OVH (with web hosting) does not work locally (by socket), but rather on the network.
In the configuration of your scripts, you will see localhost, which is not correct.
You must enter via the manager, the connection parameters on the sql servers and also the parameters you received in your sql sign-up e-mail (except the GP offers or the databases created with the ftp account. In this case the parameter connection in the e-mail that you received).
Here is the guide to create your sql database:
CreateBaseMySQL
Attention: The sql host for example
sql1 or
sql2 or
sql3 or ...
sql9. Do not put sql1.ovh.net or sql1.monsite.com, but
sql1 (no suffix is needed).