CentOS6.5 detailed tutorial on installing mysql5.6.33 in RPM mode, centos7mysql5. 6rpm
1. mysql download
: Https://dev.mysql.com/downloads/mysql/5.6.html <br> download the following installation package:
MySQL-client-5.6.33-1.el6.x86_64.rpmMySQL-devel-5.6.33-1.el6.x86_64.rpmMySQL-server-5.6.33-1.el6.x86_64.rpm
2. Check whether mysql is installed. If yes, remove it.
rpm -qa|grep -i mysqlmysql-libs-5.1.66-2.el6_3.x86_64yum -y remove mysql-libs*
3. Install mysql5.6
rpm -ivh MySQL-client-5.6.33-1.el6.x86_64.rpmrpm -ivh MySQL-devel-5.6.33-1.el6.x86_64.rpmrpm -ivh MySQL-server-5.6.33-1.el6.x86_64.rpmcp /usr/share/mysql/my-default.cnf /etc/my.cn
4. initialize MySQL and set the password
/Usr/bin/mysql_install_dbservice mysql startcat/root/. mysql_secretmysql-uroot-p initial PASSWORD set PASSWORD = PASSWORD ('20140901'); exit
5. enable remote access
mysql -uroot -p123456use mysql;update user set password=password('123456') where user='root';update user set host='%' where user='root' and host='localhost';flush privileges;exit
6. Set auto-start upon startup
chkconfig mysql on
7. Optimize my. cnf Configuration
vim /etc/my.cnf[mysqld]port = 3306default-storage-engine = InnoDB lower_case_table_names = 1 max-connections=3000character_set_server=utf8[mysql] default-character-set=utf8
The above is a detailed tutorial on installing mysql5.6.33 in RPM Mode Under CentOS6.5. I hope to help you. If you have any questions, please leave a message, the editor will reply to you in a timely manner. Thank you very much for your support for the help House website!