Saturday, April 3, 2010

MySQL on Mac

Today I'm working with installing MySQL on my MacPro, I found these useful site for installing MySQL on mac...

Mac OS version 10.2 and higher

1- Download the package mentioned above to your desktop. Unpack it and then double-click on the .pkg file to install it.
2- Open a terminal window and type in the following commands (without the double quotes):
3- type cd /usr/local/mysql
4- type sudo chown -R mysql data/, enter your Mac OS X account password when asked for it.
5- To start the server, issue sudo echo first, then type sudo ./bin/mysqld_safe &
6- Use it with /usr/local/mysql/bin/mysql test

Useful Links:

One thing I would like to mention here for bash shell, which is the default for new user accounts created under Mac OS X 10.3, the command is:

echo 'export PATH=/usr/local/mysql/bin:$PATH' >> ~/.bash_profile

Hope this will help.

No comments:

Post a Comment