: Http://dev.mysql.com/downloads/mysql/5.6.html#downloads
Select "Source Code"
2: necessary software packages
Yum-y install gcc-c ++ gcc-g77 autoconf automake zlib * fiex * libxml * ncurses-devel libmcrypt * libtool-ltdl-devel * make cmake
3: Compile and install
[Root @ server182 ~] # Groupadd mysql
[Root @ server182 ~] # Useradd-r-g mysql
[Root @ server182 ~] # Tar-zxvf mysql-5.6.10.tar.gz
[Root @ server182 ~] # Cd mysql-5.6.10
[Root @ server182 mysql-5.6.10] # cmake.
[Root @ server182 mysql-5.6.10] # make & make install
------------------------- By default, it is installed in/usr/local/mysql
[Root @ server182 ~] # Chown-R mysql. mysql/usr/local/mysql
[Root @ server182 ~] # Cd/usr/local/mysql/scripts
[Root @ server182 ~] #./Mysql_install_db -- user = mysql -- basedir =/usr/local/mysql -- datadir =/usr/local/mysql/data
[Root @ server182 ~] # Cd/usr/local/mysql/support-files
[Root @ server182 support-files] # cp mysql. server/etc/rc. d/init. d/mysql
[Root @ server182 support-files] # cp my-default.cnf/etc/my. cnf
[Root @ server182 ~] # Chkconfig-add mysql
[Root @ server182 ~] # Chkconfig mysql on
[Root @ server182 ~] # Service mysql start
Starting MySQL SUCCESS!
[Root @ server182 support-files] # mysql
Welcome to the MySQL monitor. Commands end with; or \ g.
Your MySQL connection id is 1
Server version: 5.6.10 Source distribution
Copyright (c) 2000,201 3, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
Affiliates. Other names may be trademarks of their respective
Owners.
Type 'help; 'or' \ H' for help. type' \ C' to clear the current input statement.
Mysql>
Mysql> status;
--------------
Mysql Ver 14.14 Distrib 5.6.10, for Linux (i686) using EditLine wrapper
Connection id: 1
Current database:
Current user: root @ localhost
SSL: Not in use
Current pager: stdout
Using outfile :''
Using delimiter :;
Server version: 5.6.10 Source distribution
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: utf8
Db characterset: utf8
Client characterset: utf8
Conn. characterset: utf8
UNIX socket:/tmp/mysql. sock
Uptime: 5 min 45 sec
Threads: 1 Questions: 5 Slow queries: 0 Opens: 70 Flush tables: 1 Open tables: 63 Queries per second avg: 0.014
--------------
Mysql>
Installation is complete.