Installing MySQL on Mac OS - openMF/Deprecated-mifosx GitHub Wiki
To install MySQL on Mac OS, perform the following steps:
-
Download and install the appropriate DEB package from MySQL Website (You can install MySQL Community Edition): http://dev.mysql.com/downloads/mysql/
-
After install, ensure that
/usr/local/mysqlpoints to the newly installed MySQL directory. -
From the
mysqldirectory, on Terminal, run the command:sudo ./scripts/mysql_install_db -
Then start the mysql daemon:
sudo ./bin/mysqld_safe -
Set the admin password to mysql:
./bin/mysqladmin -u root password 'mysql' -
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