MySQL installation under CENTOS7 environment

Source: Internet
Author: User
Tags yum repolist

---restore content starts---

1. Download the appropriate Yum source installation package to the official website

https://dev.mysql.com/downloads/repo/yum/

2.yum Local Installation

Command: Yum Localinstall mysql57-community-release-el7-11.noarch.rpm

3. Check if the MySQL source is installed successfully

Command:yum repolist enabled | grep "mysql.*-community.*"

4. Install MySQL

Command:yum install mysql-community-server

5. Start the MySQL service

Command:systemctl start mysqld

6. Check the startup status of MySQL

Command:systemctl status mysqld

7. Boot up

Command:

systemctl enable mysqld

systemctl daemon-reload

8. Modify the root local login password:

A. Find the default password generated in/var/log/mysqld.log:grep ‘temporary password‘ /var/log/mysqld.log

B. Login: Mysql-uroot-p;

---restore content ends---

MySQL installation under CENTOS7 environment

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.