This tutorial has been tested on RedHatLinux9 (using a vmvirtual machine installed linux System) first Please download the software package, a total of 9, including library files, respectively: mysql_5.0.41-linux-i686.tar.gzzlib-1.2.3.tar.gzhttpd-2.2.6.tar.gzlibpng-1.2.8.tar.gzfreetype-2.1.10.tar.gzjpegs
This tutorial has passed the RedHat Linux 9 test (using a linux system installed with a vmvm)
First download the software package, which contains nine library files:
Mysql_5.0.41-linux-i686.tar.gz zlib-1.2.3.tar.gz httpd-2.2.6.tar.gz
Libpng-1.2.8.tar.gz freetype-2.1.10.tar.gz jpegsrc.v6b.tar.gz
Libxml2-2.6.11.tar.gz gd-2.0.33.tar.gz php-5.2.4.tar.gz
A total of 9 source code packages
Upload the downloaded file to the/root/soft directory (the soft folder is created by yourself)
Then input cd soft in shell or terminal.
**************************************** ********
Note: '//' is a comment or explanation, which is out of the command range.
1. Install mysql:
# Tar zxvf mysql-5.0.41-linux-i686.tar.gz
// Awaiting Decompression
# Music mysql-5.0.41-linux-i686/usr/local/mysql
# Groupadd mysql
# Useradd-d/usr/local/mysql/data-s/sbin/nologin-g mysql
# Cd/usr/local/mysql
# Chown-R root.
# Chown-R mysql data
# Chown-R mysql.
#./Scripts/mysql_install_db -- user = mysql
#./Bin/mysqld_safe -- user = mysql &
# Cp./support-files/mysql. server/etc/rc. d/init. d/mysqld
# Chmod 700/etc/rc. d/init. d/mysqld
# Chkconfig -- add mysqld
// Test and install
#/Usr/local/mysql/bin/mysqladmin ping
// Mysql alive is displayed
#/Usr/local/mysql/bin/mysqladmin version
// The mysql version is displayed.
#/Usr/local/mysql/bin/mysql
// Enter the mysql command prompt. You can enter select 1 + 1 for a simple test.
// Add the root password
#/Usr/local/mysql/bin/mysqladmin-uroot-p
2. Install zlib-1.2.3
# Tar zxvf zlib-1.2.3.tar.gz
# Cd zlib-1.2.3
#./Configure -- prefix =/usr/local/zlib
# Make
# Make install