Posted By: Anonymous
I am having an issue where MySQL isn’t starting on my QNAP NAS.
I found this first by not being able to log in through phpMyAdmin – was getting error:
#2002 Cannot log in to the MySQL server
I then went to attempt to start mysql, as I guess this is a common issue with this, but it just gave a generic error.
I went through troubleshooting the mysql.sock file and everything, changing its permissions, but nothing is working.
I have rebooted my NAS many times.
I eventually tried to restart mysql. In doing so I get:
ERROR! MySQL manager or server PID file could not be found!
I can’t find anything specific to the QNAP or any general type troubleshooting for this. Everything I find seems to be OSX related.
I ended up figuring this out on my own.
In searching for my logs I went into
In there I found the file named [MyNAS].pid (replace [MyNAS] with the name of your NAS.
I then ran the following to remove the file
rm -rf /usr/local/mysql/var/[MyNAS].pid
I then restarted mysql
[/usr/local/mysql/var] # /etc/init.d/mysqld.sh restart /mnt/ext/opt/mysql /mnt/ext/opt/mysql Try to shutting down MySQL ERROR! MySQL manager or server PID file could not be found! /mnt/ext/opt/mysql Starting MySQL. SUCCESS!
I tested everything and it all works like a charm again!