Skip to content

Instantly share code, notes, and snippets.

@tkawachi
Created November 2, 2011 07:26
Show Gist options
  • Save tkawachi/1333088 to your computer and use it in GitHub Desktop.
Save tkawachi/1333088 to your computer and use it in GitHub Desktop.
sudo port install mysql5
sudo -u mysql mysql_install_db5
(cd /opt/local ; sudo /opt/local/lib/mysql5/bin/mysqld_safe &)
/opt/local/lib/mysql5/bin/mysqladmin -u root password 'YOUR_PASSWORD'
sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment