title: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
body: <p>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: </p>
  
  <p>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)!</p>
  
  <p>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!</p>
  
  <p>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! </p>