1、配置YUM源
在MySQL官網中下載YUM源rpm安裝包:
檢查mysql源是否安裝成功
shell> yum repolist enabled | grep "mysql.*-community.*"
2、安裝MySQL
shell> systemctl start mysqld
查看MySQL的啟動狀態
4、開機啟動
shell> systemctl enable mysqld
shell> systemctl daemon-reload