發布時間: 2019-07-03 14:35:11
下載對應的rpm包:https://dev.mysql.com/downloads/repo/yum/
安裝mysql源:yum localinstall mysql80-community-release-el7-2.noarch.rpm
檢查 mysql 源是否安裝成功:yum repolist enabled | grep?"mysql.*-community.*"
安裝mysql:yum install -y mysql-community-server
檢查mysql狀態:systemctl status mysqld
systemctl daemon-reload
grep 'temporary password' /var/log/mysqld.log
使用默認密碼登陸mysql:mysql -u root -p
修改root密碼:ALTER USER 'root'@'localhost' IDENTIFIED BY '123456aB_';
flush privileges;
上一篇: 大環境下的大數據培訓應該如何進行?
下一篇: 大數據培訓_數據挖掘中離群點檢測方法