2019-03-04
閱讀量:
1081
centos7 使用yum 安裝MySQL5.6
CentOS7的yum源中默認好像是沒有mysql的。為了解決這個問題,我們要先下載mysql的repo源。
1. 下載mysql的repo源
$ wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
2. 安裝mysql-community-release-el7-5.noarch.rpm包
$ sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
安裝這個包后,會獲得兩個mysql的yum repo源:/etc/yum.repos.d/mysql-community.repo,/etc/yum.repos.d/mysql-community-source.repo。
3. 安裝mysql
$ sudo yum install mysql-server
根據(jù)步驟安裝就可以了,不過安裝完成后,沒有密碼,需要重置密碼。
4. 重置密碼






評論(0)


暫無數(shù)據(jù)
推薦帖子
0條評論
0條評論
0條評論