yum localinstall mysql57-community-release-el7-8.noarch.rpm
yum repolist enabled | grep "mysql.-community."
yum install mysql-community-server
systemctl start mysqld
systemctl enable mysqld
systemctl daemon-reload
View temporary password
grep 'temporary password' /var/log/mysqld.log
Log in to the database (use the temporary password above)
mysql -uroot-p
change Password
ALTER USER 'root'@'localhost' IDENTIFIED BY'new password';
This completes the installation of MySQL under centos
Recommended Posts