A
A
Anton2017-02-06 19:50:25
MySQL
Anton, 2017-02-06 19:50:25

Mysql error on hosting?

Hello. I have a site in php, it lies on the hosting, when I go to the site it writes an error

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
what to do in this case, and why?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivanq, 2017-02-06
Reytarovsky @Antonchik

stackoverflow.com/questions/10720018/cant-connect-...
Maybe the database is on the wrong server?

P
Puma Thailand, 2017-02-07
@opium

write to the technical support of the hoster of course, why the heck is it on the toaster then write

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question