請仔細(xì)觀看文檔后,如果符合這個錯誤,再通過這種方式解決,不要盲目復(fù)制
問題:Failed to start mysqld.service: Unit not found.
原因:MySQL沒有安裝成功,就啟動MySQL
如果是在使用"yum -y install mysql-community-server"命令安裝mysql的時候,沒有安裝成功(原因:密鑰已安裝但是不適用此軟件包)
然后,使用 "systemctl start mysqld.service " 命令啟動MySQL時,報 "Failed to start mysqld.service: Unit not found."錯誤
解決:運行 rpm 命令更新檢索秘鑰,即可
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
或
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
其它情況導(dǎo)致無法安裝成功,請百科
參考:文章來源:http://www.zghlxwxcb.cn/news/detail-511667.html
CentOS 7 yum 安裝軟件密鑰包檢索問題文章來源地址http://www.zghlxwxcb.cn/news/detail-511667.html
到了這里,關(guān)于Failed to start mysqld.service: Unit not found.的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!