Installing MySQL on Mac OS X Saturday, 10 November 2007. Update: I’ve posted. What follows are instructions for building and installing MySQL 5 on Mac OS X. These instructions should work perfectly on both Tiger and Leopard. If you’re a pro at this type of thing already, if you’re impatient, or just feeling lucky, you can and give that a go.
Just make sure you’ve installed Xcode and set your path correctly (if that doesn’t make sense, you should keep reading).
The MySQL database server is one of the most popular open source databases in the world. Although there is not yet an official package for installing it on the latest version of the Macintosh operating system (Mac OS X 10.7, codenamed Lion), it is possible to install the database on such a system using the package designed for Mac OS X 10.6.
. Go to the and download the latest version of MySQL for MacOS. Select the native package DMG archive version, not the compressed TAR version. Click the Download button next to the version you choose. You are prompted to sign up for an Oracle Web Account, but unless you want one, click No thanks, just start my download.
In your downloads folder, find and double-click the file icon to mount the.dmg archive, which contains the installer. Double-click the icon for the MySQL package installer. Read the opening dialog screen and click Continue to begin the installation. Read the license terms. Click Continue and then Agree to continue.
Click Install. Record the temporary password that displays during the installation process. This password cannot be recovered. You must save it.
After you log in to MySQL, you are prompted to create a new password. Press Close on the Summary screen to complete the installation.