MySQL 5.7 installed via brew now getting ERROR! The server quit without updating PID file (/usr/local/var/mysql/dev_box.local.pid)

只愿长相守 提交于 2019-12-24 19:32:48

问题


I had mysql version 8 earlier, due to some dependency i had to downgrade to 5.7 so installed mysql@5.7 via brew.

Steps

brew uninstall mysql
brew install mysql@5.7
mysql.server start
brew link mysql@5.7 --force

Now once i have stopped the server and now i want to restart it but i am getting

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

When i do

mysqld --initialize

I am getting

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

But when i try to start the server using services it's starting but i am not getting anything in the grep but when i do "brew services list" it's showing that server is started. but i am not able to login

mysqladmin -u root password 'password'

This gives the error

mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!

I have tried almost everything from

MySql server startup error 'The server quit without updating PID file '

After MySQL install via Brew, I get the error - The server quit without updating PID file

With no luck, hoping for some quick help.

来源:https://stackoverflow.com/questions/59151944/mysql-5-7-installed-via-brew-now-getting-error-the-server-quit-without-updating

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!