Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Posted
by
Fotis
on Stack Overflow
See other posts from Stack Overflow
or by Fotis
Published on 2012-05-23T12:33:47Z
Indexed on
2012/09/28
21:38 UTC
Read the original article
Hit count: 291
I am a newbie programmer, so I will need your help! Locally the webapp works ok with the db on it! When I uploaded the application on the cloudcontrol, it comes up with the following 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)!
I suppose I have not uploaded the db. This is the very first time I upload a webapp on a server so I do not know the exact steps that I have to follow in order to upload the db on a server. Cloudcontrol has documentation about mysql! I did follow the steps but the webapp comes with the same error!
Could you please tell me what steps I have to follow in order to make it working? I am sure that this error is due to lack of knowledge!
© Stack Overflow or respective owner