MySQL Installation on UNIX from a Binary Tarball Distribution
* If in case RPM is not supported by RPM. MySQL can be installed by a binary tarball from the website. However, manual installation is most important in this situation. Following are the steps -
* You must be root in case of login (su -root)
* Extract content to a specific directory such as follows for e.g. -
cd /usr/local
tar -xzvf
mysql-standard-4.0.9-gamma-pc-linux-i686.tar.gz
Most importantly, it should be extracted in mysql-version-os-architecture
* You can also create soft link to the directory named Mysql. For e.g. -
ln -s mysql-standard-4.0.9-gamma-pc-linux-i686 mysql
* Check the files in the directory and their respective arrangement.
* You can also user groupadd and useradd -
groupadd mysql
useradd –g mysql mysql
* Run the installation scripts, such as follows -
/usr/local/mysql/scripts/mysql_install_db
This basically installs various tables and access permissions
* You can make the changes to the MySQL binaries as follows -
chown -R root /usr/local/mysql
* You must also provide them read / write permissions to access MySQL datas -
chown -R mysql /usr/local/mysql/data
chgrp -R mysql /usr/local/mysql
* Start MySQL -
/usr/local/mysql/bin/mysqld_safe
–user=mysql &
* It should start reading the tables that were created earlier.
|