简体   繁体   English

错误。 服务器退出而不更新 PID 文件 (/usr/local/mysql/data/Mac.local.pid)

[英]ERROR! The server quit without updating PID file (/usr/local/mysql/data/Mac.local.pid)

After install, run fine mysql and restart my mac, i get this error, when i call this command line:安装后,运行好 mysql 并重新启动我的 mac,当我调用此命令行时出现此错误:

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

Hier the error:希尔错误:

ERROR! The server quit without updating PID file (/usr/local/mysql/data/Mac.local.pid).

And when i try to connect me to mysql -u root -p , this error:当我尝试将我连接到mysql -u root -p时,出现此错误:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

I try the solution in this link MySQL does not start when upgrading OSX to Yosemite or El Capitan , but nothing.我尝试了此链接中的解决方案, 当将 OSX 升级到 Yosemite 或 El Capitan 时,MySQL 没有启动,但没有。 I also try to change the owner of the mysql folder with:我还尝试更改 mysql 文件夹的所有者:

sudo chown -R _mysql:_mysql /usr/local/mysql/

But nothing.但是什么也没有。

Any ideas?有任何想法吗?

Thank谢谢

start your mysql in safe_mode.its working for me.在 safe_mode 中启动你的 mysql。它为我工作。 hope it would work also for you希望它也对你有用

/usr/local/mysql/bin/mysqld_safe start

I had to uninstall mysql我不得不卸载mysql

brew uninstall mysql@5.7

and reinstall again并重新安装

brew install mysql@5.7

When I check my terminal I could see this warning当我检查我的终端时,我可以看到这个警告

 [ERROR] --initialize specified but the data directory has files in it. Aborting.

then I had to do this然后我不得不这样做

rm -rf /usr/local/var/mysql

and open my.cnf like this像这样打开 my.cnf

nano /usr/local/etc/my.cnf

and remove this line mysqlx-bind-address = 127.0.0.1并删除此行mysqlx-bind-address = 127.0.0.1

then do the post-install like this然后像这样进行安装后

brew postinstall mysql@5.7 

Which finally worked.这终于奏效了。 I had wasted a whole day on this.我在这上面浪费了一整天。 Hope someone finds this useful.希望有人觉得这很有用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误! 服务器退出而不更新PID文件(/usr/local/var/mysql/Bridge.local.pid) - ERROR! The server quit without updating PID file (/usr/local/var/mysql/Bridge.local.pid) 错误! 服务器退出而不更新PID文件(/usr/local/var/mysql/`username`.lan.pid) - ERROR! The server quit without updating PID file (/usr/local/var/mysql/`username`.lan.pid) 通过 brew 安装的 MySQL 5.7 现在出现错误! 服务器退出而不更新PID文件(/usr/local/var/mysql/dev_box.local.pid) - MySQL 5.7 installed via brew now getting ERROR! The server quit without updating PID file (/usr/local/var/mysql/dev_box.local.pid) ZEND + MAC + MYSQL =错误! 服务器退出而不更新PID文件 - ZEND + MAC + MYSQL = ERROR! The server quit without updating PID file MySQL 服务器启动错误“服务器退出而不更新 PID 文件” - MySQL server startup error 'The server quit without updating PID file' 错误! 服务器退出而不更新 PID 文件 - Mysql 服务器未启动 - ERROR! The server quit without updating PID file - Mysql server not starting MySQL启动错误'ERROR! 服务器退出而不更新PID文件' - MySql startup error ' ERROR! The server quit without updating PID file' MySQL:服务器退出而不更新PID文件 - MySQL: The server quit without updating PID file mysql异常(错误!服务器退出而不更新PID文件) - mysql anomalies (ERROR! The server quit without updating PID file) mysql错误! 服务器退出而不更新PID文件? - mysql ERROR! The server quit without updating PID file?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM