This article is based on the internet and I'm just verifying that:
46645763
Https://jingyan.baidu.com/article/86fae346aa437f3c48121a5b.html
1: Install Nysql
# 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
2: Start
# Service Mysqld Restart
3: Go to MySQL and change password:
MySQL-set password=password ('123456'where user=' Root ' ; flush privileges;
4: Remote authorized access;
Authorization: Grant all on*. * To'Root'@'%'Identified by' Password'with grant option;//allow account root to connect to all databases from any host (*. *)Grant all on test.* to'User'@'%'Identified by'Password'with grant option;//Allow account user to connect from any host to the test database (test.*)
Flush privileges; Refresh the System authorization form
5: Exit
Exit;
CentOs Install Mysql