centos7安裝mysql

參考連接

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
相關文章
相關標籤/搜索