So this morning my server started running out of memory due ( I assume ) to some code changes I made last night. I reverted some of the code changes, shut down and then restarted my Linode, and everything worked fine.
About an hour later, the same thing started happening. So I reverted a few more changes, and did a Reboot on the Linode. Now my MySQL server doesn't appear to want to start.
Code:
> mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
> start mysql
start: Job failed to start
> restart mysql
restart: Unknown instance:
> /etc/init.d/mysql start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql start
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start mysql
start: Job failed to start
I didn't make any other changes to the server besides some minor changes to PHP files. I am still relatively new to sysadmin and am at a total loss for how I can get mysql up and running again, or why it would have stopped starting up in the first place.
I am running the LAMP StackScript available from the Linode StackScript repository.
Code:
Originally created using Ubuntu 10.04 LTS and 'LAMP Stack' StackScript at revision 160
Any help is greatly appreciated.