我最先的问题是用navicat 连接mysql时,报
Can't connect to MySQL server on '127.0.0.1' (61)
然后在终端运行下图时
报
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
然后就网上各种找
然后试着在偏好设置里启动MySQL
发现,在系统偏好设置里mysql 点击了启动,马上又变红了
然后网上有找,
最后找到,在终端启动
命令行: sudo /usr/local/mysql/support-files/mysql.server start
结果报错,上图.
ERROR! The server quit without updating PID file (/usr/local/mysql/data/*****imac.local.pid).
然后继续找,发现时权限不够,就先给权限,如下图
给权限最后再运行 sudo /usr/local/mysql/support-files/mysql.server start
然后就能链接了
网友评论