首页 > 数据库技术 > 详细

mac book 安装MySQL

时间:2016-03-27 02:23:06      阅读:238      评论:0      收藏:0      [点我收藏+]

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

mac book 安装MySQL

原文:http://hw1287789687.iteye.com/blog/2286193

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!