MySQL 的MAC终端一些指令总结
开启MySQL服务
sudo /usr/local/mysql/support-files/mysql.server start
关闭MySQL服务
udo /usr/local/mysql/support-files/mysql.server stop
重启MySQL服务
sudo /usr/local/mysql/support-files/mysql.server restart
进入数据库:
mysql -u root -p(前面会有地址,比如:/usr/local/mysql/bin)
输入root密码。即可进入运行