Install MySQL on OS X

Mon, Sep 8, 2008

Server / Web Apps

1. Download the standard Mac OS X package at

2. Double-click on the .pkg file to install it.

3. Open Applications/Utilities/

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

This post was written by:

- who has written 50 posts on Mac Lab: An Apple Macintosh OS X, Mac & PC Blog.

Leave a Reply