CENTOS7 Yum Installation mariadb

Source: Internet
Author: User

Starting with the latest version of CENTOS7, the default is mariadb instead of mysql!

Using the system's own repos installation is simple:

Yum Install mariadb Mariadb-server

Systemctl start mariadb ==> start mariadb

Systemctl enable mariadb ==> boot from

Firewall-cmd--permanent--add-port=3306/tcp ==> Open port, allows remote access

Systemctl Restart firewalld==> reboot firewall

Mysql_secure_installation ==> Setting the root password and other related

mysql-uroot-p Password ==> Test login!

Authorize root remote any machine can login

Use MySQL;

Update MySQL set host= '% ' where user= ' root ' and host= ' localhost ';

Flush privileges;

Or

Grant all privileges on * * to ' [email protected]% ' identified by ' password ' with GRANT option;

Flush privileges;

This article is from the "Blue Sky" blog, make sure to keep this source http://shurk.blog.51cto.com/1134443/1745524

CENTOS7 Yum Installation mariadb

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.