Since it is the first time to install, it is not possible to determine whether you have installed the build and MySQL to rely on the plug-in, use I was as your most original installation environment.
1, install the mysql5.1 dependency package
Yum install-y gcc gcc-c++ autoconf* automake* zlib* libxml* ncurses-devel* libgcrypt* libtool* openssl*
2, upload the MySQL installation package, you can download the official website, note is to download the source code.
3. Upload root directory to root
4. Start compiling and installing mysql5.1
Mkdir-p/data/mysql
Useradd MySQL
Chown Msyql.mysql/data/mysql
TAR-XF mysql-5.1.73.tar.gz
CD mysql-5.1.73.tar.gz
./configure--prefix=/usr/local/mysql--localstatedir=/data/mysql--enable-assembler--with-client-ldflags=- All-static--with-mysqld-ldflags=-all-static--with-pthread--enable-static--with-big-tables--without-ndb-debug-- With-charset=utf8--with-extra-charsets=all--without-debug--enable-thread-safe-client--enable-local-infile-- With-plugins=max
Make && make install
CP SUPPORT-FILES/MY-HUGE.CNF/ETC/MY.CNF
CP Support-files/mysql.server/etc/init.d/mysqld
Vi/etc/init.d/mysqld
Basedir =/usr/local/mysql
DataDir =/data/mysql
Generation more
mysql5.1 compiled installation----for the first time you install MySQL