Installing MySQL server on Mac OS X

1. Install brew

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2. Install MySQL from brew

$ brew install mysql

3. Launch service using launchctl.

$ mysql.server start

4. Connect to MySQL shell

mysql -u root

As compared to Ubuntu counterpart, root mysql account is not password protected.

Leave a Reply

Your email address will not be published. Required fields are marked *