Troubles with macport install in mysql
November 7, 2009 § 1 Comment
I painfully discover there are many outdated blog tutorials on installing mysql. It is difficult to find the most accurate documentation even within the official mysql.com website.
$sudo port install mysql5 +server
If you did make a mistakes, uninstall mysql5 +server.
$ port uninstall mysql +server
mysql5 +server package variant in MacPorts is obsolete, and is superseded by the
mysql5-server package, which you install in addition to
mysql5. This allows you to build it after the fact, instead of re-compiling the entire
mysql5 package with
Install both mysql5 and
mysql5-server packages. You should find mysql5 plist file in
/Library/LaunchDaemons. You should not need to symlink your
# Install MySQLsudo port install mysql5 mysql5-serversudo -u mysql mysql_install_db5sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plistsudo port install rb-mysql/opt/local/lib/mysql5/bin/mysqladmin -u root password 'PASSWORD'sudo gem install mysql -- --with-mysql-config=/opt/local/bin/mysql_config5# Install Apachesudo port install apache2sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plistsudo /opt/local/apache2/bin/apachectl -k startsudo /opt/local/apache2/bin/apachectl -k stop# Install Passengersudo gem install passengersudo passenger-install-apache2-module# Extrassudo port install wgetsudo port install ImageMagicksudo port install sphinxsudo gem install capistrano
§ One Response to Troubles with macport install in mysql