当 brew install mysql 完成后,使用
mysql.server restart 报错: ERROR! The server quit without updating PID file (/usr/local/var/mysql/andy.local.pid)
是因为在/usr/local/var/mysql这个目录没有普通管理员的写入权限. 使用 sudo chown -R andy:staff mysql/ 就可以了
当 brew install mysql 完成后,使用
mysql.server restart 报错: ERROR! The server quit without updating PID file (/usr/local/var/mysql/andy.local.pid)
是因为在/usr/local/var/mysql这个目录没有普通管理员的写入权限. 使用 sudo chown -R andy:staff mysql/ 就可以了