How to setup MySQL on Mac OS X

213 views, 0 replies
+1
0 / 1

If your goal is to setup MySQL for use with the built in copy of Apache and PHP, you're in luck because it's really easy.

Note that if you are running Mac OS X Server, a version of MySQL should already be installed.

Browse to the MySQL downloads page and download the apache bundle appropriate for your version of OS X and hardware (32-bit/64-bit): mysql.com/downloads/mysql

I recommend downloading the DMG archive as it makes the installation even easier.

Install both pkg files, starting with mysql itself followed by the StartupItem. You can then start/stop MySQL through System Preferences > MySQL preferences pane:

Optionally, open Terminal and the following to set a root password:

mysqladmin -u root password 'yourPassword'

You are then free to start working with your database. I recommend using the MySQL Workbench: dev.mysql.com/downloads/workbench

Edited 1 year ago Flag this comment as innapropriate
Posted 1 year ago by Dolph (120)
Post a reply anonymously: