CentOs Install Mysql

Source: Internet
Author: User

This article is based on the internet and I'm just verifying that:

46645763

Https://jingyan.baidu.com/article/86fae346aa437f3c48121a5b.html

1: Install Nysql

# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm# RPM-IVH mysql-community-release-el7-5. noarch.rpm# yum install MySQL-community-server

2: Start

# Service Mysqld Restart

3: Go to MySQL and change password:

MySQL-set password=password ('123456'where user=' Root ' ; flush privileges;

4: Remote authorized access;

Authorization: Grant all on*. * To'Root'@'%'Identified by' Password'with grant option;//allow account root to connect to all databases from any host (*. *)Grant all on test.* to'User'@'%'Identified by'Password'with grant option;//Allow account user to connect from any host to the test database (test.*)
Flush privileges; Refresh the System authorization form

5: Exit

Exit;

CentOs Install Mysql

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.