Recent I had to install MySQL on a RHEL 3 server. Normally I’d do this with RPMs but in this case the client needed an install that exactly matched another server which had been installed using the TAR/GZ binary distribution. Here are the steps used for the install: 1. Download the binary TAR/GZ distribution. In this case it was named mysql-standard-4.1.13-pc-linux-gnu-i686.tar.gz and I downloaded it to /root/archive. 2. Unpack the distribution.
|
|
cd /root/archive tar -xvzf mysql-standard-4.1.13-pc-linux-gnu-i686.tar.gz |
3. The steps provided in the INSTALL-BINARY text file included in the distribution outline the following steps:
|
|
shell> groupadd mysql shell> useradd -g mysql mysql shell> cd /usr/local shell> gunzip < /PATH/TO/MYSQL-VERSION-OS.tar.gz | tar xvf - shell> ln -s FULL-PATH-TO-MYSQL-VERSION-OS mysql shell> cd mysql shell> scripts/mysql_install_db --user=mysql shell> chown -R root . shell> chown -R mysql data shell> chgrp -R mysql . shell> bin/mysqld_safe --user=mysql & |
Taking these one at a time:
Skip this step. The mysql group already exists so there is no need to add it.
|
|
shell> useradd -g mysql mysql |
Skip this step. The mysql user already exists so there is no need to add it.
|
|
shell> cd /usr/local shell> gunzip < /root/archive/mysql-standard-4.1.13-pc-linux-gnu-i686.tar.gz | tar xvf - shell> ln -s mysql-standard-4.1.13-pc-linux-gnu-i686 mysql |
Complete this steps as provided.
|
|
shell> cd mysql shell> scripts/mysql_install_db --user=mysql shell> chown -R root . shell> chown -R mysql data shell> chgrp -R mysql . |
Complete these steps as provided.
|
|
shell> bin/mysqld_safe --user=mysql & |
We’ll skip this step for now since