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