Update your local MySQL source with MySQL website configuration

Source: Internet
Author: User
Tags yum repolist
参考连接:51759200前提环境:Centos 6.* 本身配置的yum源自带的mysql版本为5.1;后续希望yum安装5.*其他版本的数据库可以使用新增yum源进行测试安装。

1. Configure the Yum source

Download the Yum source RPM installation package on the MySQL website: http://dev.mysql.com/downloads/repo/yum/

2. # download MySQL Source installation package

        shell> wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm        安装yum源        shell> yum localinstall mysql57-community-release-el7-8.noarch.rpm

3. Check if the MySQL source is installed successfully

  shell> yum repolist enabled | grep "mysql.*-community.*"

4, see the instructions can be MySQL source installation completed.

   可以修改vim /etc/yum.repos.d/mysql-community.repo源,改变默认安装的mysql版本。比如要安装5.6版本,将5.7源的enabled=1改成enabled=0。然后再将5.6源的enabled=0改成enabled=1即可。改完之后的效果如下所示:

Subsequent installation of the database can be done using yum install Mysql-community-server!

Follow-up: Feel this replacement of the original Yum source for the high-level installation of the database is relatively novel, so recorded.

Update your local MySQL source with MySQL website configuration

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.