ERROR! MySQL manager or server PID file could not be found! QNAP

前端 未结 18 1241
慢半拍i
慢半拍i 2020-12-07 16:38

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:



        
18条回答
  •  醉梦人生
    2020-12-07 17:11

    I ended up figuring this out on my own.

    In searching for my logs I went into

    cd /usr/local/mysql/var
    

    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!

提交回复
热议问题