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. Install MySQL5 on Mac OSX With Darwin Port Before installing MySQL5, please be sure you have Darwin Port...
  2. postgresql82-server compile error on Apple Leopard with Macports 1.5 I wasn’t able to compile postgresql82-server on my machine, it’s...
  3. How do I Start Application Services with launchctl When Apple Mac Leopard Boot Up If you have MySQL, PostgreSQL, Apache2 or other application installed...
  4. MySQL 5 Server Cannot Start on Apple Mac Leopard There were some problem during configuring MySQL5 Server on Leopard...
  5. installing postgresql 8.2 on Leopard with macports postgresql! one of my favorite high performance open source db,...
  6. OS X Lion Macports OS X Lion Macports, Can I upgrade from Snow Leopard?...
  7. Reset MySQL Root Password Very often, once we didn’t log on to MySQL database...
  8. MySQL Quick Installation on FreeBSD Quick installation of MySQL Database on FreeBSD Server. Make sure...
  9. Problem Upgrade Apache2 on MacPorts I was trying to upgrade apache2 on my Macports but...
  10. Change or Set User Password in FreeBSD If you notice, during FreeBSD installation, it doesn’t have a...

Leave a Reply