mac系统下mysql启动后立即自动关闭 navicat连接提示2013错误

今天启动navicat的时候发现连接不上,navicat提示错误信息

2013-Lost connection to MYSQL server at 'reading for initial communication packet’

后来发现在原来我启动mysql数据库之后系统自动关闭了数据库。几经尝试之下,发现了一个玄学的解决办法。

在mac系统偏好设置面板打开mysql服务之后立即关闭mysql服务,然后再重新启动mysql,问题就解决了,玄学
mac系统下mysql启动后立即自动关闭 navicat连接提示2013错误