Install prerequisite software Yum install Ncurses-devel-yyum install pcre Pcre-devel-yyum install gcc*-y unzip TAR-ZXVF mysql-5.1.72.tar.gz Create directory Mkdir/application/mysql5.1.72/{data,tmp}-pchown-r mysql:mysql/application Compiling mysql./configure \--prefix=/application/mysql5.1.72 \--with-unix-socket-path=/application/mysql5.1.72/tmp/ Mysql.sock \--localstatedir=/application/mysql5.1.72/data \--enable-assembler \--enable-thread-safe-client \-- With-mysqld-user=mysql \--with-big-tables \--without-debug \--with-pthread \--enable-assembler \-- With-extra-charsets=complex \--with-readline \--with-ssl \--with-embedded-server \--enable-local-infile \-- With-plugins=partition,innobase \--with-mysqld-ldflags=-all-static \--with-client-ldflags=-all-static #-- With-plugin-plugin \ make && make install create soft connect ln-s/application/mysql5.1.72// APPLICATION/MYSQL  CP support-files/my-small.cnf/etc/my.cnf Create MySQL user groupadd Mysqluseradd- G mySQL Mysqlecho "Oracle" |PASSWD--stdin mysql Create data file directory Mkdir/application/mysql/data-p chown-r MySQL: mysql/application/mysql initialization process/application/mysql/bin/mysql_install_db--basedir=/application/mysql--datadir =/application/mysql/data/--user=mysql If no error occurs (waring can occur), and two OK appears, indicating success. add/application/mysql/bin to environment variable export path=/application/mysql/bin: $PATH
Linux MySQL 5.1 Source installation