1. Download MySQL 5.6
download page: http://dev.mysql.com/downloads/mysql/
here Select "Red Hat Enterprise linux 6/oracle Linux 6 (x86, 32-bit), RPM Bundle" Download, download to/root/downloads/directory, download file named "MySQL-5.6. 15-1.el6.i686.rpm-bundle.tar "
2. Unzip the TAR package
cd/root/downloads/
TAR-XVF Mysql-5.6.15-1.el6.i686.rpm-bundle.tar
3. Install MySQL in rpm mode
in a rhel system, the "mysql-shared-compat-5.6.15-1.el6.i686.rpm" Compatibility Pack must be installed before the server and client can be installed, or an error will be installed.
yum Install mysql-shared-compat-5.6.15-1.el6.i686.rpm # Rhel Compatibility Pack
yum Install mysql-server-5.6.15-1.el6.i686.rpm # MySQL Server program
yum Install mysql-client-5.6.15-1.el6.i686.rpm # MySQL client program
yum Install mysql-devel-5.6.15-1.el6.i686.rpm # MySQL Library and header files
yum Install mysql-shared-5.6.15-1.el6.i686.rpm # MySQL shared library
RPM-IVH mysql-server-5.6.15-1.el6.i686.rpm
RPM-IVH mysql-client-5.6.15-1.el6.i686.rpm
4. Configure MySQL login password
Cat/root/.mysql_secret # Get random passwords generated when MySQL is installed
Service MySQL start # start MySQL services
mysql-uroot-p # Enter MySQL, use the random password obtained before
SET PASSWORD for ' root ' @ ' localhost ' = PASSWORD (' PASSWORD ');# Set the root account password to password on the MySQL command line
Quit # quit MySQL command line
Service MySQL Restart # restart MySQL Services
Install Mysql5.6-bundle.tar under Linux