mysql启动报错(mac)

$mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

$service mysqld status
-bash: service: command not found

查阅了网上的各种说法

最后解决的方法就一句

$mysqld
原文地址:https://www.cnblogs.com/iwangzheng/p/3775408.html