I most annoying installation configuration service!
下载安装msyql的repo源
[Email protected] ~]# wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
[Email protected] ~]# yum-y install mysql-community-release-el7-5.noarch.rpm
Install MySQL
[Email protected] ~]# yum-y install Mysql-server
Verify the installation
[Email protected] ~]# Rpm-qa | grep MySQL
Turn on MySQL service
[[email protected] ~]# systemctl start MySQL
MySQL has an initial password.
[[email protected] ~]# grep "Password"/var/log/mysqld.log
[[email protected] ~]# mysql-uroot-p ' copied password paste in '
You need to change the password after you enter the initial password to manipulate the database
Mysql> ALTER USER ' root ' @ ' localhost ' identified by ' new password ';
Note: If the password is set to a simple error, should be MySQL has set password rules, please Baidu to solve
CentOS 7 Installation MySql