Install MySQL on Centos7

Source: Internet
Author: User

MARIADB database management System is a branch of MySQL, mainly by the open source community in the maintenance, the use of GPL license. One of the reasons for developing this branch is that after Oracle acquired MySQL, there is a potential risk of shutting MySQL out of the source, so the community uses a branching approach to avoid this risk. MARIADB is designed to be fully compatible with MySQL, including APIs and command lines, making it easy to be a replacement for MySQL.

Centos7 default data has been changed from MySQL to MARIADB. Check the mariadb before installing MySQL.

To view the currently installed MARIADB package:

[Email protected] Desktop]# Rpm-qa | grep mariadb

Remove them all forcibly:

[Email protected] Desktop]# rpm-e--nodeps mariadb-libs-5.5.35-3.el7.x86_64

[Email protected] Desktop]# rpm-e--nodeps mariadb-5.5.35-3.el7.x86_64

[Email protected] Desktop]# rpm-e--nodeps mariadb-server-5.5.35-3.el7.x86_64

  1. Automatically install MySQL over the network

# 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 To restart MySQL:# Service Mysqld Restart initial installation no password # mysql-u root Set PasswordSet password for ' root ' @ ' localhost ' = password (' mypasswd ');

Install MySQL on Centos7

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.