CentOS6.5 detailed tutorial on installing mysql5.6.33 in RPM mode, centos7mysql5. 6rpm

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.