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

前端 未结 18 1321
慢半拍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 16:58

    I tried everything above, but saw no results until I got a hint from here: https://superuser.com/questions/159486/how-to-kill-process-in-mac-os-x-and-not-have-it-restart-on-its-own

    I eventually went over to the activity monitor in my Mac, force Quit the PID, and ran the command:

    sudo /usr/local/mysql/support-files/mysql.server restart
    

    The magic was done!!!

    0 讨论(0)
  • 2020-12-07 16:59

    Note: If you just want to stop MySQL server, this might be helpful. In my case, it kept on restarting as soon as I killed the process using PID. Also brew stop command didn't work as I installed without using homebrew. Then I went to mac system preferences and we have MySQL installed there. Just open it and stop the MySQL server and you're done. Here in the screenshot, you can find MySQL in bottom of system preferences.

    0 讨论(0)
  • 2020-12-07 16:59

    After doing setup of PHPMyAdmin, I was also facing the same problem,

    • Then I just stopped the MYSQL server by going into System settings, and then started again, and it worked.
    0 讨论(0)
  • 2020-12-07 17:05
    root@host [~]# service mysql restart
    MySQL server PID file could not be found! [FAILED]
    Starting MySQL.The server quit without updating PID file (/[FAILED]mysql/host.pxx.com.pid).
    
    root@host [~]# vim /etc/my.cnf
    Add Line in my.cnf its working know
    innodb_file_per_table=1
    innodb_force_recovery = 1
    

    Result

    root@host [~]# service mysql restart
    MySQL server PID file could not be found! [FAILED]
    Starting MySQL……….. [ OK ]
    root@host [~]# service mysql restart
    Shutting down MySQL…. [ OK ]
    Starting MySQL. [ OK ]
    

    Source

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

    screenshot

    If you're using MySQL Workbench, the mysql.server stop/restart/start will not work.

    You will need to login into the workbench and then click "shutdown server". See image attached.

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

    Just run mysqld (don't run as root) from your terminal. Your mysql server will restart and reset everything like shown in the picture below:

    And use a command like so:

    mysql -u root -h 127.0.0.1
    
    0 讨论(0)
提交回复
热议问题