: O. Yuanying

MacPorts の MySQL で +server variants が obsolute になってた

と、いうわけで、

$ sudo port install mysql5 +server           
--->  Fetching mysql5
--->  Verifying checksum(s) for mysql5
--->  Extracting mysql5
--->  Applying patches to mysql5
--->  Configuring mysql5
<strong>The +server variant is obsolete. Please install the mysql5-server port instead.</strong>
--->  Building mysql5
--->  Staging mysql5 into destroot
--->  Installing mysql5 @5.0.83_0+server
--->  Activating mysql5 @5.0.83_0+server
--->  Cleaning mysql5

MacPortsでMySQLをインストール する際には、+server variants ではなく、追加で mysql5-server をインストールする必要があるみたい。

$ sudo port install mysql5-server                             
--->  Fetching mysql5-server
--->  Verifying checksum(s) for mysql5-server
--->  Extracting mysql5-server
--->  Configuring mysql5-server
--->  Building mysql5-server
--->  Staging mysql5-server into destroot
--->  Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting mysql5-server with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
###########################################################
--->  Installing mysql5-server @5.0.83_0
******************************************************
* In order to setup the database, you might want to run
* sudo -u mysql mysql_install_db5
* if this is a new install
******************************************************
--->  Activating mysql5-server @5.0.83_0
--->  Cleaning mysql5-server

これで自動起動用の設定ファイルがインストールされた。