MySQL pid ended (cannot start mysql)

后端 未结 10 1783
有刺的猬
有刺的猬 2020-12-08 07:02

I have a clean install of MySQL (mysql-5.5.24-osx10.6-x86_64). I am on Lion (OS 10.7.4) with a Mac Pro Quad Core. I installed MySQL the GUI installer and also installed the

相关标签:
10条回答
  • 2020-12-08 07:47

    120515 18:13:01 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

    • Regarding this error, I assume that you have specified a datadir in my.cnf. If you are using a non-default data directory for MySQL, you need to move folders mysql and performance_schema (whichever exists) to the data directory specified in my.cnf. You can find these folders in mysql directory.

    In MySQL 5.5+ the --skip-locking option is removed. Use --skip-external-locking instead. Refer to MySQL documentation --> http://dev.mysql.com/doc/refman/5.5/en/mysql-nutshell.html Quote: "The --enable-locking and --skip-locking server options (use --external-locking and --skip-external-locking)."

    0 讨论(0)
  • 2020-12-08 07:54

    I had the same problem after updating to OS X Mavericks.

    Starting MySQL . ERROR! The server quit without updating PID file

    Like Redrick and AndPy mentioned I also had to rename (actually I deleted the file) the error file located in $ cd /usr/local/var/mysql. My error file was called localhost.err. After removing the file with $ rm localhost.err I could finally start MySQL again with $ mysql.server start.

    0 讨论(0)
  • 2020-12-08 07:58

    Give this a whirl..

    1. Navigate to the problem's parent directory cd YOURPATH/usr/local/mysql
    2. rm -rf *.local.err (deletes file)
    3. touch YOURUSERNAME.local.pid (generates new *.local.pid file the error thrown was complaining about)
    4. cd back into your project and restart mysql using mysql.server start
    0 讨论(0)
  • 2020-12-08 08:00

    My answer is very similar to others, but slightly different and this applies mostly to a bitnami mamp stack. The fix for me was:

    sudo chown -R mysql mysql/

    The mysql/ directory is the one located in Applications/<mampstack-version>/

    The above sets the mysql to be the owner of the mysql directory recursively into the other directories.

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