1. Download the standard Mac OS X package at http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg
2. Double-click on the .pkg file to install it.
3. Open Applications/Utilities/Terminal.app
4. Type: cd /usr/local/mysql
5. Type: sudo chown -R mysql data/
6. To start the server, type sudo echo
first, then type sudo ./bin/mysqld_safe &
7. Test it with /usr/local/mysql/bin/mysql test
Important: You should run this command in order to secure the open master account in the default installation:
/usr/local/mysql/bin/mysqladmin -u root password new_password_here