在Mac下MySQL服务的启动命令

How to start MySQL server from command line on Mac OS Lion?
更新于: 2021-12-19 12:57:29

找到这个目录

/usr/local/mysql/support-files

❯ which mysql
/usr/local/bin/mysql

~ via 💎 v2.6.5
❯ l /usr/local/bin/mysql
lrwxr-xr-x  1 alo7.aric  admin  26 Dec 12  2017 /usr/local/bin/mysql -> /usr/local/mysql/bin/mysql

~ via 💎 v2.6.5
❯ cd /usr/local/mysql

常用命令

# 启动
./mysql.sever start

# 重启
./mysql.sever restart

# 其它 ./mysql.server -h
Usage: mysql.server  {start|stop|restart|reload|force-reload|status}  [ MySQL server options ]

参考