天天看点

mac book 安装MySQL

参考:https://easyengine.io/tutorials/mac/osx-brew-php-mysql-nginx/

run following command:

mysql服务管理

start mysql: <code>/usr/local/mysql/support-files/mysql.server start</code>

stop mysql: <code>/usr/local/mysql/support-files/mysql.server stop</code>

see other options – <code>/usr/local/mysql/support-files/mysql.server -h </code>

比如启动mysql服务:

localhost:downloads whuanghkl$ mysql.server start

starting mysql

. success! 

设置mysql密码

run following command to improve security of your mysql setup. it will present you wizard to set mysql root password among other things.