1. Download MySQL5.6 download page: Small (x86, 32-bit), RPMBundle & rdquo; download, download to/root/Downloads/directory, download file name is & ldquo; MySQL-5.6.15-
1. Download MySQL 5.6
Download Page: http://dev.mysql.com/downloads/mysql/this option is selected using Red Hat Enterprise Linux 6/Oracle Linux 6 (x86, 32-bit), RPM Bundle. Download to/root/Downloads"
2. decompress the tar packageMySQL-5.6.15-1.el6.i686.rpm-bundle.tar cd/root/Downloads/tar-xvf
3. Install MySQL in RPM ModeIn the RHEL system, you must first install the MySQL-shared-compat-5.6.15-1.el6.i686.rpm compatibility package before you can install the server and client, otherwise the installation will fail. Yum install MySQL-shared-compat-5.6.15-1.el6.i686.rpm # RHEL compatible package 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 file yum install MySQL-shared-5.6.15-1.el6.i686.rpm # MySQL shared library
4. Configure the MySQL logon PasswordCat/root/. mysql_secret # obtain the random password generated during MySQL Installation
Service mysql start # start the MySQL service
Mysql-uroot-p # Enter MySQL and use the random password obtained earlier
Set password for 'root' @ 'localhost' = PASSWORD ('Password'); # SET the password of the root account to password in the MySQL command line.
Quit # exit MySQL Command Line
Service mysql restart # restart the MySQL service
Recommended reading:
Ubuntu Nginx load Implementation of High Performance WEB Server 5 --- MySQL master synchronization http://www.linuxidc.com/Linux/2012-06/61687p5.htm
Production Environment MySQL master synchronization primary key conflict processing http://www.linuxidc.com/Linux/2013-07/86890.htm
MySQL Master/Slave failure error Got fatal error 1236 http://www.linuxidc.com/Linux/2012-02/54729.htm
MySQL master-slave replication, http://www.linuxidc.com/Linux/2013-03/81913.htm on a single server
For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10