简体   繁体   English

.PID 文件在运行 mysql.server start 时被删除

[英].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!我通过brew install mysql ,当我运行mysql.server start ,出现错误 ERROR! The server quit without updating PID file (/usr/local/var/mysql/User-Macbook-Pro.local.pid).服务器退出而不更新 PID 文件 (/usr/local/var/mysql/User-Macbook-Pro.local.pid)。 After creating the .pid file, I run mysql.server start and get the same error.创建 .pid 文件后,我运行 mysql.server start 并得到相同的错误。 I've tried deleting the .err file but it just keeps removing my .pid file.我试过删除 .err 文件,但它一直在删除我的 .pid 文件。 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...还要确保在安装 mysql 后以 root 用户身份运行它...

sudo mysql.server start

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

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