Getting MySql Up and Running after Upgrading to Mavericks_MySQL

php中文网
发布: 2016-06-01 13:16:28
原创
1001人浏览过

i recently upgraded my mac to mavericks and, of course, mysql was hosed afterwards. i use mysql a lot for development and demos and dreaded going through the pain of getting it running again. i recalled the initial installation was fairly unpleasant, with a bit of trial and error before i finally had my test databases the way i wanted them. when i upgraded to mavericks, i panicked when my tests started failing with errors connecting to mysql. alas, it was broken. a bit of googling indicated that it needed to be reinstalled on mavericks, which was not actually true. had i seenthisfirst, i would have known better.anyway, i came across thisapple user tipthat not only made installation and setup a snap, but made integration with osx even better. here is a summary from the article:

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_64.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:

 

    KeepAlive

   

    Label

    com.mysql.mysqld

    ProgramArguments

   

    /usr/local/mysql/bin/mysqld_safe

    --user=mysql

   

 

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.

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号