mac book 安装MySQL
参考:https://easyengine.io/tutorials/mac/osx-brew-php-mysql-nginx/
Run following command:
brew install mysql --enable-debug
In case you need mysql-workbench, please download it from?here. It cannot be installed via brew.
?
MySQL服务管理
Start mysql:?/usr/local/mysql/support-files/mysql.server start
Stop mysql:?/usr/local/mysql/support-files/mysql.server stop
See other options –?/usr/local/mysql/support-files/mysql.server -h?
Usage: mysql.server {start|stop|restart|reload|force-reload|status} [ MySQL server options ]
比如启动MySQL服务:
localhost:Downloads whuanghkl$ mysql.server start
Starting MySQL
?
. SUCCESS!?
?
设置MySQL密码
mysql_secure_installation
原文:http://hw1287789687.iteye.com/blog/2286193