MySQL installation of Yum

Source: Internet
Author: User

It is easy to install one of the MySQL methods, but the password setting will have password strength after installation.

Cancellation is also very convenient, as long as adding to the main match

Validate-password=off


MySQL will differentiate your Linux system.

Details can go to the official website to view, I directly to CentOS7 example

Download RPM Package for installation

wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm

RPM for installation

RPM-IVH mysql57-community-release-el7-11.noarch.rpm

Yum install MySQL

Yum-y Install Mysql-community-server

CentOS7 default MARIADB can be uninstalled in advance or uninstalled, Yum will automatically unload

Start MySQL

Systemctl Restart Mysqld

View the default password

grep password/var/log/mysqld.log

Change Password

mysqladmin-u root-p password ' [email protected] '

You will be prompted to enter the original password, you can change


Recommended not to remove password strength, to prevent cracking

MySQL installation of Yum

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.