Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Installing MySQL on Mac OS

Gurpreet edited this page Feb 18, 2014 · 2 revisions

To install MySQL on Mac OS, perform the following steps:

  1. Download and install the appropriate DEB package from MySQL Website (You can install MySQL Community Edition): http://dev.mysql.com/downloads/mysql/

  2. After install, ensure that /usr/local/mysql points to the newly installed MySQL directory.

  3. From the mysql directory, on Terminal, run the command: sudo ./scripts/mysql_install_db

  4. Then start the mysql daemon: sudo ./bin/mysqld_safe

  5. Set the admin password to mysql: ./bin/mysqladmin -u root password 'mysql'

  6. Check that it is properly set, by executing: ./bin/mysql -u root -p

That is it. Your mySQL installation is ready.

Note: To stop MySQL you can use the command ./bin/mysqladmin shutdown -u root -p