1. download cmake: http://wwwNaNake.org/files/v2.8/cmake-2.8.10.2.tar.gz
./configure
Make && make install
2.vi/etc/profile:
Export Path=/usr/local/cmake-2.8.10.2/bin: $PATH
Source/etc/profile
3.wget http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.37.tar.gz
4.TAR-ZXVF mysql-5.5.37.tar.gz
CD mysql-5.5.37
5.c Make -dcmake_install_prefix=/usr/local/mysql \
-dmysql_datadir=/usr/local/mysql/data\
-Dsysconfdir=/usr/local/mysql/etc \
-dwith_innobase_storage_engine=1 \
-dwith_archive_storage_engine=1 \
-dwith_blackhole_storage_engine=1 \
-dwith_memory_storage_engine=1 \
-dwith_ Partition_storage _engine=1 \
-dwith_federated_storage_engine=1 \
-dwith _readline =1 \
-dwith_embedded_server=1 \
-d enabled_local_infile =1   \
-ddefault_charset=utf8 \
-ddefault_collation= Utf8_general_ci   \
-dwith_extra_charsets=all \
-dwith_zlib=system   \
-dmysql_unix_addr=/ usr/local/ MySQL /mysql.sock Span style= "font-family: ' The song Body '; Font-size:14px;color:rgb (0,0,0);" > \
-dwith_ readline=1   \
-dwith_readline=1 \
- D mysql_user=mysql \
-dmysql_tcp_port=3306 \
-dwith_debug=0 \
-denable_downloads=1
6.cd/usr/local/mysql
Chown-r Root:mysql.
Chown-r Mysql:mysql Data
7.mv/etc/my.cnf/etc/my.cnf.bak
Cp-p support-files/my-huge.cnf/etc/my.cnf
8.cd/usr/local/mysql
scripts/mysql_install_db--user=mysql
9.vi/root/.bash_profile, modified to:
Path= $PATH: $HOME/bin:/usr/local/mysql/bin:/usr/local/mysql/lib
Source/root/.bash_profile
10.cd/usr/local/mysql
./bin/mysqld_safe--user =root &
/usr/local/mysql/bin/ mysqladmin-u root-p shutdown
11.cd/usr/local/mysql/
CP Support-files/mysql.server/etc/init.d/mysql
Chown-r Mysql:mysql/usr/local/mysql
/etc/init.d/mysql/start
12.vi/etc/sysconfig/iptables:
Add to:
-A input-m state--state new-m tcp-p TCP--dport 3306-j ACCEPT
/etc/init.d/iptables restart
This article is from the "Lin XI" blog, please be sure to keep this source http://lutaoxu.blog.51cto.com/4224602/1605955
Centos6.3_64 compile and install the MySQL-5.5.37 database