CENTOS7 installation configuration MySQL

Source: Internet
Author: User

Centos7 default comes with the MARIADB database, it is a branch of MySQL, mainly by the open source community in the maintenance, the use of GPL licensing MARIADB is fully compatible with MySQL, including the API and command line, so that it can easily become a substitute for MySQL.

1. Let's start by looking at whether we've installed MySQL (using any of the following commands)

(1). Yum List installed mysql*

(2). Rpm-qa | grep mysql*

2. Choose to install MySQL (MARIADB) if not installed

Yum Install mysql*

3. After successful installation, you can use the following command to set the status of the MySQL database

(1). Start mariadb or MySQL

Systemctl start Mariadb.service or Systemctl start Mysqld.service

(2). Close mariadb or MySQL

Systemctl Stop Mariadb.service or systemctl stop Mysqld.service

(3). Restart mariadb or MySQL

Systemctl Restart Mariadb.service or systemctl restart Mysqld.service

(4). Set MARIADB or MySQL boot

Systemctl enable Mariadb.service or Systemctl enable Mysqld.service

CENTOS7 installation configuration 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.