运行 brew install mysql 后,我已经尝试了此处发布的所有解决方案,但仍然没有运气。在尝试启动 MySQL 时,我得到了这个:
me$ mysql.server start
Starting MySQL
. ERROR! The server quit without updating PID file (/usr/local/mysql/data/cpe-98-14-179.159.nyc.res.rr.com.pid).
或这个:
me$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
etc/my.cnf 看起来像这样:
me$ sudo nano etc/my.cnf
Password:
[mysqld]
datadir=/usr/local/mysql/data
socket=/var/lib/mysql/mysql.sock
[mysql.server]
user=mysql
basedir=/usr/local/mysql
[client]
socket=/var/lib/mysql/mysql.sock
我的权限错了吗?有没有可能我的目录搞砸了?如果我可以从网站上清除所有内容并安装,我会在此时尝试。任何帮助深表感谢!