<font id="b5ptz"><tt id="b5ptz"></tt></font><dl id="b5ptz"><strike id="b5ptz"><legend id="b5ptz"></legend></strike></dl>

<center id="b5ptz"></center>
<thead id="b5ptz"></thead>
<option id="b5ptz"></option>
<legend id="b5ptz"><strike id="b5ptz"><dl id="b5ptz"></dl></strike></legend><nobr id="b5ptz"></nobr>

<option id="b5ptz"><tt id="b5ptz"><nobr id="b5ptz"></nobr></tt></option>

首頁(yè)常見問(wèn)題正文

如何在CentOS7中安裝MySQL?

更新時(shí)間:2020-07-07 來(lái)源:黑馬程序員 瀏覽量:


問(wèn)題:如何在CentOS7中安裝MySQL?

答:

在CentOS7中, yum install mysql -y 安裝的是MariaDB,怎么安裝MySQL數(shù)據(jù)庫(kù)呢?

第一步:下載MySQL的YUM源

# wget http://dev.mysql.com/get/mysql-communityrelease-el7-5.noarch.rpm

第二步:安裝MySQL的YUM源軟件包

# rpm -ivh mysql-community-release-el7-5.noarch.rpm

第三步:安裝MySQL軟件

# yum -y install mysql-community-server

第四步:?jiǎn)?dòng)MySQL軟件

# systemctl start mysqld

第五步:初始化MySQL數(shù)據(jù)庫(kù)

# mysql_secure_installation


下面是黑馬程序員公開的幾套視頻教程,可以跟著學(xué)習(xí)學(xué)習(xí),如果想深入學(xué)習(xí),轉(zhuǎn)到運(yùn)維行業(yè),建議報(bào)班學(xué)習(xí)黑馬程序員linux云計(jì)算+運(yùn)維開發(fā)培訓(xùn)課程。



分享到:
在線咨詢 我要報(bào)名
和我們?cè)诰€交談!