The statement
This was written in Youdao Cloud a long time ago. Of course, it also referred to other bloggers’ articles, which can be directly said to be reprinted. However, the original address was not recorded at that time
Centos7 installation mysql5.6
# yum install wget # yum install wget Wget download mysql RPM package 3 at http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm. RPM -ivh mysql-community-release-el7-5.noarch. RPM 4. Install mysql-server yum -y install mysql-server Start, log in and change the password. Start mysql: systemctl start mysqld Log in to mysql: mysql. Set password for root@localhost = password('root'); . Grant all PRIVILEGES on *.* to 'root'@'%' identified by 'root' with grant option; flush privileges; . Exit mysql: exit. Open port 3306: firewall-cmd --zone=public --add-port=3306/ TCP --permanent Restart the firewall: firewall-cmd --reloadCopy the code
Thank you
Thank you for your helpful posts and bloggers