I'm a beginner programmer, so I need your help! Locally webapp works fine with db on it! When I downloaded the application to cloud control, it causes the following error:
CDbConnection could not open the database connection: SQLSTATE [HY000] [2002] Cannot connect to the local MySQL server through the socket '/var/run/mysqld/mysqld.sock' (2)!
I suppose I did not load db. This is the first time that I load webapp on the server, so I don’t know which steps I have to follow to load db on the server. Cloudcontrol has mysql documentation! I followed the steps below, but webapp comes up with the same error!
Could you tell me what steps I must follow to make it work? I am sure that this error is due to a lack of knowledge!
Fotis source
share