I do not know why MySQL's official website is difficult to download, I searched the internet for a long time, finally found a mirror:
Special thanks to http://mirrors.sohu.com/mysql/MySQL-5.6/^_^
First download the following three RHEL6 installation packages for MySQL: (can be directly next Mysql-5.6.22-1.el6.x86_64.rpm-bundle.tar)
mysql-client-5.6.22-1.el6.x86_64.rpm
mysql-devel-5.6.22-1.el6.x86_64.rpm
mysql-server-5.6.22-1.el6.x86_64.rpm
Then log in using the root account to install:
1. Install server, devel, client:
RPM-IVH--replacefiles mysql-s*.rpm
RPM-IVH--replacefiles mysql-d*.rpm
RPM-IVH--replacefiles mysql-c*.rpm
2. Initialize the database:
/usr/bin/mysql_install_db
3. Start the MySQL service:
Service MySQL Start
4. First login to set the root password:
First View Cat/root/.mysql_secret
# mysql-u Root-p
Enter Password:
Mysql> set Password=password (' admin ');
Query OK, 0 rows Affected (0.00 sec)
mysql> flush Privileges;
Query OK, 0 rows Affected (0.00 sec)
5. Set up remote login:
mysql> use MySQL;
Mysql> Grant all privileges on * * to ' root ' @ '% ' identified by ' admin ' with GRANT OPTION;
mysql> FLUSH privileges;
Mysql> exit;
Canceling ftp blocking of firewalls
# IPTABLES-L-N//view
# System-config-firewall
# mysql-h 192.168.*.*-P 3306-u root-padmin
6. Set up with boot
# chkconfig--add MySQL
# chkconfig--level MySQL on
# service MySQL Restart
good!
rhel_6.x installing MySQL