Download and install (64-bit 10.6+ version) MySql 5.5.22 installer package together with the Startup files.
cp /usr/local/mysql/support-files/my-small.cnf /private/etc/my.cnf
open -e /private/etc/my.cnf
Create a folder called "mysql" (if you don't already have one) in the /var directory with the right permissions:
sudo chown -R mysql mysql
sudo chmod 775 mysql
Start up MySql via terminal:
sudo /Library/StartupItems/MySQLCOM/MySQLCOM startSet PATH environment variable on OS X Client installation.
echo 'export PATH=/usr/local/mysql/bin:$PATH' >> ~/.profileClose and re-open the terminal window to take effect.
For a secure multi-user setup continue with installation of phpMyAdmin.
(If you already have MySql installed in /usr/local directory.)
sudo tar -cvf /tmp/mysql-data.tar data
Download and install (64-bit 10.6+ version) MySql 5.5.15 installer package.
sudo tar -xf /tmp/mysql-data.tar
sudo chown -R mysql /usr/local/mysql/*
sudo /Library/StartupItems/MySQLCOM/MySQLCOM restart