Starting MySQL . ERROR! The server quit without updating PID file (/usr/local/var/mysql/MacBook-Pro-3.local.pid).
xxxxx@MacBook-Pro-3 ~ % brew services info mysql mysql (homebrew.mxcl.mysql) Running: ✔ Loaded: ✔ Schedulable: ✘ User: root PID: 598 xxxxx@MacBook-Pro-3 ~ % mysql mysql: [Warning] World-writable config file '/etc/my.cnf' is ignored. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/Users/xxxxx/Documents/mysql.sock' (2) xxxxx@MacBook-Pro-3 ~ % mysql -u root mysql: [Warning] World-writable config file '/etc/my.cnf' is ignored. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/Users/chengpeng/Documents/mysql.sock' (2) chengpeng@MacBook-Pro-3 ~ %
Enter password for user root: Error: Can't connect to local MySQL server through socket '/Users/xxxxx/Documents/mysql.sock' (2) xxxxx@MacBook-Pro-3 ~ %
julyclyde
2023-02-15 17:26:57 +08:00
Can't connect to local MySQL server through socket '/Users/xxxxx/Documents/mysql.sock' 客户端的某个神奇的配置文件说让它去连接这个根本不存在的地址