CentOS7 installing MySQL

Source: Internet
Author: User

Replaced MySQL database with mariadb in CENTOS7

1. Make sure Yum is on the machine and perform the installation command
Yum Install mariadb Maraidb-server
2. Start MARIADB
Systemctl start mariadb# Set boot Systemctl enable mariadb# close Mariadbsystemctl Stop mariadb# restart Maraidbsystemctl restart Mariadb
3, modify the user password 3.1, in the MySQL database to modify the user table password
-- This test modifies the root user's password -- password is a cryptographic function Update User set Password=password ('root'whereuser  ='root';
3.2. Make the settings effective
privileges;

4. Set Allow remote connection
--authorization to all users of all machines with Root/root login to change the access to all tables and additionsGrant  All  on *.*  to 'Root'@'%'Identified by 'Root';--All Permissions--* * All the tables etc.--root user of ' root ' @ '% ' all machines--identified by ' root ' login with root password

Executes the statement in 3.2, which is set to take effect

Setup is complete!

CentOS7 installing MySQL

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.