MySql 4.x on OSX Server 10.2+ (Jaguar)


Install Instructions

curl -O http://mysql.he.net/Downloads/MySQL-4.0/mysql-standard-4.0.16.dmg

Download and install.

cd /usr/local/mysql
sudo ./scripts/mysql_install_db
sudo chown -R mysql /usr/local/mysql/*
sudo ./bin/safe_mysqld --user=mysql &
/usr/local/bin/mysql test

If you do not want to have to type "/usr/local/bin" in front of every command, you have to add the /usr/local/bin directory to your PATH environment variable in your login script. For the default tcsh shell, you can do this by running this command once:

echo 'setenv PATH /usr/local/bin:$PATH' >> ~/.tcshrc

Additional info can be found here on MySql site.

Install start-up item folder

curl -O http://www2.entropy.ch/download/mysql-startupitem.pkg.tar.gz 

Update Instructions

cd /usr/local/mysql
sudo tar -cvf /tmp/mysql-data.tar data
curl -O http://mysql.he.net/Downloads/MySQL-4.0/mysql-standard-4.0.16.dmg

Proceed with "Package" installation

cd /usr/local/mysql
sudo tar -xf /tmp/mysql-data.tar
sudo chown -R mysql /usr/local/mysql/*

REBOOT COMPUTER