ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)


I only get this mysql error when using cloud 9. Php


Is MySQL setup and running? Try the following:

mysql-ctl install
mysql-ctl start


It is set-up. But it doesn’t seem to be running when I start cloud 9. I’ve tried sudo /etc/init.d/apache2 restart and it doesn’t work. When I click start project and then try to access mysql in the terminal it works. This is good enough for me! Thanks