CentOS7安裝MySQLhtml
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm yum -y install mysql57-community-release-el7-10.noarch.rpm yum -y install mysql-community-server systemctl start mysqld.service systemctl status mysqld.service grep "password" /var/log/mysqld.log # 查找密碼 mysql -u root -p ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password'; yum -y remove mysql57-community-release-el7-10.noarch