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

前端 未结 18 1322
慢半拍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

    If you have installed MySQL using brew the best way to go would be with homebrew

    brew services restart mysql
    

    after you run that command, all the problems that the update generated will be resolved

    0 讨论(0)
  • 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!

    0 讨论(0)
  • 2020-12-07 17:13

    Nothing of this worked for me. I tried everything and nothing worked.

    I just did :

    brew unlink mysql && brew install mariadb
    

    My concern was if I would lost all the data, but luckily everything was there.

    Hope it works for somebody else

    0 讨论(0)
  • 2020-12-07 17:13

    I was able to solve this on OS X by shutting down the existing mysql.server that was running:

    mysql.server stop
    

    The starting:

    mysql.server start
    

    From there I could run mysql.server restart without throwing the ERROR.

    0 讨论(0)
  • 2020-12-07 17:14

    I have the same problem. I found the file {username}.local.err instead of {username}.local.pid inside /usr/local/mysql, then i changed the name *.err to *.pid and it works fine.
    Starting MySQL. SUCCESS!

    My OS El Capitan 10.11.5

    0 讨论(0)
  • 2020-12-07 17:19

    I had the same issue. It turns out I added incorrect variables to the my.cnf file. Once I removed them and restarted mysql started with no issue.

    0 讨论(0)
提交回复
热议问题