centos7安裝mysql 5.7

 centos7 安裝mysql 5.7 說明記錄

 

wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
yum -y localinstall mysql-community-release-el7-5.noarch.rpm
檢查yum源

yum repolist enabled | grep "mysql.*-community.*"
安裝配置開機啓動

cd /etc/yum.repos.d/
vi mysql-community-source.repo
把5.7的修改
enabled=1
gpgcheck=0

yum -y install mysql-community-server
systemctl start mysqld.service
systemctl enable mysqld.service

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章