Install MySQL on CentOS 7 How to Install MySQL on CentOS 7
rpm -Uvh http://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm,
yum install mysql-community-server
mysql_secure_installation
Failed! Error: Your password does not satisfy the current policy requirements
add validate_password_policy=LOW
in file /etc/my.cnf
vim /etc/my.cnf
add skip-grant-tables
systemctl stop mysqld
systemctl start mysqld
mysql -uroot
use mysql;
update user set authentication_string=PASSWORD("youpassworld") where User='root';
flush privileges;
exit
Access remotely:
use mysql;
update user set Host= "%" where User="root";
flush privileges;
systemctl restart mysqld