The most complete version of the CentOS 6.5/6.6 installation MySQL 5.7 tutorial

Source: Internet
Author: User
Tags yum repolist

STEP1: Check whether the system comes with the installation of MySQL

# yum list installed | grep mysql

STEP2: Delete the system's own MySQL and its dependencies
Command:

# yum -y remove mysql-libs.x86_64

STEP3: Add a RPM source to CentOS and select a newer source
Command:

# wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm# yum localinstall mysql-community-release-el6-5.noarch.rpm# yum repolist all | grep mysql# yum-config-manager --disable mysql55-community# yum-config-manager --disable mysql56-community# yum-config-manager --enable mysql57-community-dmr# yum repolist enabled | grep mysql

STEP4: Installing the MySQL server
Command:

install mysql-community-server

STEP5: Start MySQL
Command:

# service mysqld start

STEP6: Check if MySQL is self-booting and set on self-boot
Command:

# chkconfig --list | grep mysqld# chkconfig mysqld on

Step7:mysql Security Settings
Command:

# mysql_secure_installation

Refer to the relevant document address:
Http://www.rackspace.com/knowledge_center/article/installing-mysql-server-on-centos
Http://dev.mysql.com/doc/refman/5.7/en/linux-installation-yum-repo.html
Http://www.cnblogs.com/xiaoluo501395377/archive/2013/04/07/3003278.html

The most complete version of the CentOS 6.5/6.6 installation MySQL 5.7 tutorial

Related Article

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.