使用brew安装mysql
$:brew install mysql
安装完成后
$:mysql
发现报错了
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
尝试使用
$:mysql -uroot
如果还是报错的话,执行一下命令
$:brew services start mysql
然后再执行
$:mysql -uroot
使用brew安装mysql
$:brew install mysql
安装完成后
$:mysql
发现报错了
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
尝试使用
$:mysql -uroot
如果还是报错的话,执行一下命令
$:brew services start mysql
然后再执行
$:mysql -uroot
本文标题:mac安装mysql
本文链接:https://www.haomeiwen.com/subject/thxfnttx.html
网友评论