`

mac book 安装MySQL

阅读更多

mac book 安装MySQL

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

Installing MySQL on Mac OS X

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服务管理

Manual Start/Stop

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密码

Changes to MySQL Config (optional)

For security

 
Run following command to improve security of your mysql setup. It will present you wizard to set mysql root password among other things.
mysql_secure_installation
0
4
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics