1.Download MySQL, if you haven't already. The article indicates to download the OSx 10.6 pkg with the dmg. I wanted the latest, so I got mysql-5.6.17-osx10.7-x86_.tar.gz and extracted to/usr/local/mysql. Either way seems fine though.
2. Runsudo vi /Library/LaunchDaemons/com.mysql.mysql.plist, add and save the following:
3. Runsudo vi /etc/my.cnf, add and save the following:
[client]
socket=/var/mysql/mysql.sock
[mysqld]
socket=/var/mysql/mysql.sock
4. Runsudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plistand MySql will start. You are then ready toset the root password and add any users.
Hopefully this will save you some time. There are lots of things like this that can be a pain to do (or remember what you did last time). As I come across those, I will add them here.
Copyright © 2019- huatuo5.cn 版权所有
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务