読者です 読者をやめる 読者になる 読者になる

macportsで入れたMySQL 5.6の自動起動設定をやってみた

Mac OS X macports MySQL

やってみる(Try1)

キリン一番搾り生ビールを呑みながらw

babydaemons:org.macports.mysql56 root# sudo curl -O http://robwilkerson.org/_resources/hotlink/blog/mysql56.wrapper
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   435  100   435    0     0    432      0  0:00:01  0:00:01 --:--:--   432
babydaemons:org.macports.mysql56 root# sudo curl -O http://robwilkerson.org/_resources/hotlink/blog/org.macports.mysql56.plist
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   435  100   435    0     0    361      0  0:00:01  0:00:01 --:--:--   361
babydaemons:org.macports.mysql56 root# sudo chown root:wheel /opt/local/etc/LaunchDaemons/org.macports.mysql56/*
babydaemons:org.macports.mysql56 root# sudo chmod 755 /opt/local/etc/LaunchDaemons/org.macports.mysql56/mysql56.wrapper
babydaemons:org.macports.mysql56 root# sudo chmod 644 /opt/local/etc/LaunchDaemons/org.macports.mysql56/org.macports.mysql56.plist
babydaemons:org.macports.mysql56 root# sudo ln -s /opt/local/etc/LaunchDaemons/org.macports.mysql56/org.macports.mysql56.plist /Library/LaunchDaemons/org.macports.mysql56.plist
babydaemons:org.macports.mysql56 root#

だめらしい。

やってみた(Try2)

babydaemons:~ shingo$ sudo /opt/local/share/mysql56/support-files/mysql.server start
Starting MySQL
...... SUCCESS!
babydaemons:~ shingo$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql56-server.plist
babydaemons:~ shingo$

よさげな雰囲気。