Centos7 installing Mysql (Ubuntu)

Source: Internet
Author: User
Tags yum repolist

1.# wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm

Download MySQL Source installation package

2.# Yum Localinstall mysql57-community-release-el7-8.noarch.rpm

Install MySQL source

3.# yum Repolist enabled|grep "mysql.*-community.*"

Check that the MySQL source is installed successfully

4.# Yum Install Mysql-server

Install MySQL If there is a display [y/n] Direct output y is OK

5.# systemctl Start mysqld

# systemctl Status mysqld

Start MySQL

6.# Systemctl Enable Mysqld

# Systemctl Daemon-reload

Boot up

7.# grep ' temporary password '/var/log/mysqld.log

# mysql-u Root-p

Modify the root local login password, and after the MySQL installation is complete, a default password is generated for root in the/var/log/mysqld.log file. Locate the root default password in the following way, and then log in to MySQL to modify it:

Centos7 installing Mysql (Ubuntu)

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.