Can't connect to local MySql (#2002 - Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock (2))
- it's a connection error. The message means that your script cannot connect locally to MySQL.
- MySQL in OVH (on website hosting services) is not placed locally in the network. In your script configuration you have insert (localhost) which resulted in errors. You need to provide parameters of connection to sql server which you've received in the email concerning creation of your database.
Manual concerning creating
MySQL databases.
Attention:SQL host may, for example, be sql1 or sql2 or sql3 or ... sql9. Don't use sql1.ovh.net nor sql1.mydomain.com, but simply sql1.