Download the binary-free compiler package.
wget http://mirrors.sohu.com/mysql/MySQL-5.1/mysql-5.1.73-linux-i686-glibc23.tar.gz
Du-sh check size, probably more than 100 m. Note the version of System 32 or 64, next to version.
Extract.
TAR-ZXVF plus file name.
echo $? Check whether normal, normal feedback value is 0, abnormal based on feedback error.
Create a MySQL run account.
Useradd-s/sbin/nolongin (do not log in)-M (do not set up home directory) MySQL
Move Rename
MV Mysql-5.1.1.73-linux-i686-glibc23/usr/local/mysql
Cd/usr/local/mysql
Create the Data directory
Mkdir-p/data/mysql
Permission changes
Chown-r Mysql/data/mysql
Initialization
./scripts/mysql_install_db--user=mysql--datadir=/data/mysql/
Attention Check echo $?
View Configuration
Ls
CD Soppurt-files
Ls
CP MY-LARGE.CNF/ETC/MY.CNF
Overwrite Y
Vim!$
Binlog (Logging, note # is not open)
Copy Startup scripts
Ls/etc/init.d
CP Mysql.server/etc/init.d/mysqld
Vim $!
Find the following items to modify save
basedir=/usr/local/mysql/
datadir=/data/mysql/
Join launch
Chkconfig--add mysqld
Chkonfig mysqld on
/etc/init.d/mysqld start
PS aux |grep MySQL
NETSTAT-LNP |grep MySQL
Pay attention to check if there are any errors.
This article is from the "Endless Sand rolling" blog, please be sure to keep this source http://loveemily.blog.51cto.com/6205266/1775074
CentOS under binary compiler-free installation MySQL