Install MySQL5 Server on Apple Mac Leopard with MacPorts

Previously I wrote a post on “installing postgresql 8.2 on Leopard with macports“, seem like quite a no. of people also interested to know how to MySQL5 as server on Mac Leopard with MacPorts.

As usual, it’s advice to update your port before installing any latest software from Macports. To update your Macports;



sudo port -v selfupdate

To configure MySQL5 as server on your Mac Leopard, here are the steps.



sudo port -v install mysql5 +server

After installation, you have to run this command to installd default database;



sudo -u mysql mysql_install_db5

To start MySQL5, run this command;



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

After you have started MySQL, change your MySQL’s root default password;



mysqladmin5 -u root password 

If you would like to start MySQL when machine boot up, add the start up script into launchctl. To learn more about launchctl, type



man launchctl

Enjoy MySQL!

Related posts:

  1. postgresql82-server compile error on Apple Leopard with Macports 1.5 I wasn’t able to compile postgresql82-server on my machine, it’s...
  2. Install MySQL5 on Mac OSX With Darwin Port Before installing MySQL5, please be sure you have Darwin Port...
  3. MySQL 5 Server Cannot Start on Apple Mac Leopard There were some problem during configuring MySQL5 Server on Leopard...
  4. How do I Start Application Services with launchctl When Apple Mac Leopard Boot Up If you have MySQL, PostgreSQL, Apache2 or other application installed...
  5. installing postgresql 8.2 on Leopard with macports postgresql! one of my favorite high performance open source db,...
  6. MySQL Quick Installation on FreeBSD Quick installation of MySQL Database on FreeBSD Server. Make sure...
  7. Problem Upgrade Apache2 on MacPorts I was trying to upgrade apache2 on my Macports but...
  8. How to Flush DNS Cache in Apple Mac OSX Leopard Many of you might not know that beside Microsoft Windows...
  9. MySQL Cannot Connect with PHP in OSX I think some of you might have problem connecting to...
  10. Configure IPV6 on Apple and Windows Do you have IPV6 network ready in your office?...

Leave a Reply