MySQL 5.7.17 installation configuration method graphic Tutorial (CentOS7) _mysql

Source: Internet
Author: User
Tags yum repolist

CentOS7 Install MySQL Notes

1 CentOS7 Install MARIADB database by default , uninstall MARIADB.

Rpm-qa|grep mariadb

Yum Remove mariadb-libs.x86_64

2 Configuring Yum Source

1) Download MySQL source installation package
wget Http://xiazai.jb51.net/201612/yuanma/mysql57YUM (jb51.net). rar

2) Install MySQL source

Yum Localinstall mysql57-community-release-el7-9.noarch.rpm

3) Check whether the MySQL source is installed successfully

Yum Repolist enabled | grep "Mysql.-community."

3 Installing MySQL

Yum Install Mysql-community-server

4 Start MySQL Service

1) Start

Systemctl Start mysqld

2) To view the startup status of MySQL

5 Boot up

Systemctl Enable Mysqld
Systemctl Daemon-reload

6 Modify root default password

1 after the MySQL installation is complete, a default password is generated for root in the/var/log/mysqld.log file.

Root default password found by grep ' temporary password '/var/log/mysqld.log:

2) Login MySQL

Mysql-uroot-p
Enter Password:

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.