Macports mysql5 setup under Snow Leopard

前端 未结 7 1154
死守一世寂寞
死守一世寂寞 2020-12-24 08:28

I\'ve managed to get my install all screwed up as I\'m a newbie and messing up is what I\'m good at.

1) Can anyone reference a credible set of setup instructions for

7条回答
  •  生来不讨喜
    2020-12-24 09:14

    I've just run into the same issue myself. To get my MySQL working, I simply had to do

    sudo chmod -Rf 777 /opt/local/var/db/mysql5
    

    The attempt to do sudo -u _mysql mysql_db5 failed, but I could then do

    mysqladmin -u root  password the_new_password
    

    without any problem.

    If you don't want MySQL to start automatically when you turn the machine on, simply do this:

    sudo launchctl unload -w /Library/LaunchDaemons/org.macports.mysql5.plist
    

    Then to start/stop MySQL:

    start:

    sudo /opt/local/etc/LaunchDaemons/org.macports.mysql5/mysql5.wrapper start
    

    stop:

    sudo /opt/local/etc/LaunchDaemons/org.macports.mysql5/mysql5.wrapper stop
    

    Hope this helps.

提交回复
热议问题