手机看片精品高清国产日韩,色先锋资源综合网,国产哺乳奶水91在线播放,乱伦小说亚洲色图欧洲电影

幫助中心 >  技術(shù)知識(shí)庫(kù) >  云服務(wù)器 >  服務(wù)器教程 >  Linux Centos8安裝MariaDB10.5(采用國(guó)內(nèi)鏡像)

Linux Centos8安裝MariaDB10.5(采用國(guó)內(nèi)鏡像)

2024-11-04 16:22:41 5302

Linux Centos8安裝MariaDB10.5(采用國(guó)內(nèi)鏡像)

 

歡迎來(lái)到藍(lán)隊(duì)云技術(shù)小課堂,每天分享一個(gè)技術(shù)小知識(shí)。

 

Centos8安裝MariaDB10.5(采用國(guó)內(nèi)鏡像)

設(shè)置數(shù)據(jù)源

新建配置文件:MariaDB.repo

vim  /etc/yum.repos.d/MariaDB.repo

寫(xiě)入如下內(nèi)容

# MariaDB 10.5 CentOS repository list - created 2020-10-23 01:54 UTC

# http:///downloads.mariadb.org/mariadb/repositories/

[mariadb]

name = MariaDB

baseurl = https:///mirrors.aliyun.com/mariadb/yum/10.5/centos8-amd64/

gpgkey=https:///mirrors.aliyun.com/mariadb/yum/RPM-GPG-KEY-MariaDB

module_hotfixes=1

gpgkey=https:///yum.mariadb.org/RPM-GPG-KEY-MariaDB

gpgcheck=1

 

更新緩存

dnf clean all  

dnf makecache  

dnf repolist

 

顯示可安裝的版本

# 這個(gè)可以看版本號(hào)

dnf search mariadb --showduplicates  --disablerepo=AppStream

dnf search mariadb

 

--disablerepo=AppStream 禁用倉(cāng)庫(kù)標(biāo)識(shí)為 AppStream 的主軟件倉(cāng)庫(kù)

 

執(zhí)行命令,開(kāi)始安裝

現(xiàn)在安裝的就是 最新的版本了

dnf -y install MariaDB-server MariaDB-client  --disablerepo=AppStream

 

--disablerepo=AppStream 禁用倉(cāng)庫(kù)標(biāo)識(shí)為 AppStream 的主軟件倉(cāng)庫(kù)

 

開(kāi)啟服務(wù)

sudo systemctl start mariadb

 

開(kāi)機(jī)啟動(dòng)

systemctl enable mariadb

 

初始化

mysql_secure_installation

 

Enter current password for root (enter for none):  //輸入root(mysql)的密碼。默認(rèn)沒(méi)有,直接回車(chē)

Switch to unix_socket authentication [Y/n]   //是否切換到unix套接字身份驗(yàn)證[Y/n] n

 

Set root password? [Y/n]  –>是否設(shè)置root用戶密碼,輸入y并回車(chē)或直接回車(chē)

New password:  –>設(shè)置root用戶的密碼

Re-enter new password:  –>再輸入一次你設(shè)置的密碼

Remove anonymous users? [Y/n]   –>是否刪除匿名用戶,回車(chē)

Disallow root login remotely? [Y/n]  –>是否禁止root遠(yuǎn)程登錄,回車(chē),

Remove test database and access to it? [Y/n]   –>是否刪除test數(shù)據(jù)庫(kù),回車(chē)

Reload privilege tables now? [Y/n]   –>是否重新加載權(quán)限表,回車(chē)

 

初始化MariaDB完成后,以mysql的root身份登錄

mysql -uroot -p

 

藍(lán)隊(duì)云官網(wǎng)上擁有完善的技術(shù)支持庫(kù)可供參考,大家可自行查閱,更多技術(shù)問(wèn)題,可以直接咨詢。同時(shí),藍(lán)隊(duì)云整理了運(yùn)維必備的工具包免費(fèi)分享給大家使用,需要的朋友可以直接咨詢。

更多技術(shù)知識(shí),藍(lán)隊(duì)云期待與你一起探索。

 


提交成功!非常感謝您的反饋,我們會(huì)繼續(xù)努力做到更好!

這條文檔是否有幫助解決問(wèn)題?

非常抱歉未能幫助到您。為了給您提供更好的服務(wù),我們很需要您進(jìn)一步的反饋信息:

在文檔使用中是否遇到以下問(wèn)題: