0

this is my problem as for this problem set 7. The message pops up after I have tried to chmod php, files, and directories as said on other websites.

Fatal error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) in /home/ubuntu/workspace/pset7/vendor/library50-php-5/CS50/CS50.php on line 314

Could anyone help me out here, I am dealing with this problem for a while.

Thanks

1

You will get that message if the database is not "running". You can check the status with mysql50 status. If it says MySQL is not running., you need to issue a mysql50 start.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .