I use binary for installation, filename mysql-standard-5.0.18-linux-i686-glibc23.tar.gz
[1] Extract the above file to a certain place, and MySQL so directory name to MySQL, the result should be as/home/jiang/mysql
[2] According to the MySQL directory under the install-binary file to install
Plus user group MySQL, as well as user MySQL; the command does not need to be modified
shell> Groupadd MySQL
shell> useradd-g MySQL MySQL
The main purpose of the following three steps is to make a link to the MySQL extract directory, and put it in the usr/local directory.
The first is to enter the/usr/local directory, which need not be modified
Shell> cd/usr/local
This step can not be needed, because the decompression has been
Shell> Gunzip </path/to/mysql-version-os.tar.gz | Tar xvf-
Make a link to/home/jiang/mysql, put it in/usr/local, the name of the link is MySQL.
This command is modified to ln-s/home/jiang/mysql MySQL
shell> ln-s Full-path-to-mysql-version-os MYSQL
Into the/home/jiang/mysql directory,/usr/local/mysql is the link to/home/jiang/mysql
shell> CD MySQL
Initialize MySQL (This step can be abbreviated if MySQL has been installed previously); The command does not need to be modified
Shell> scripts/mysql_install_db--user=mysql
Change of ownership; The command does not need to be modified
Shell> chown-r Root.
shell> chown-r MySQL Data
Shell> chgrp-r MySQL.
Start the MySQL server: No need to modify the command
Shell> Bin/mysqld_safe--user=mysql &