简体   繁体   中英

.PID file gets deleted when running mysql.server start

I installed mysql through brew install mysql and when I run mysql.server start , I get the error ERROR! The server quit without updating PID file (/usr/local/var/mysql/User-Macbook-Pro.local.pid). After creating the .pid file, I run mysql.server start and get the same error. I've tried deleting the .err file but it just keeps removing my .pid file. Any ideas on what I'm doing wrong?

run these commands during install...

unset TMPDIR
mysql_install_db

also ensure that you're running mysql as the root user once you do have it installed...

sudo mysql.server start

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM