久久青草精品A片狠狠,日韩欧美视频一区二区,亚洲国码AV日韩,国产精品黄在

幫助中心 >  技術(shù)知識(shí)庫(kù) >  云服務(wù)器 >  服務(wù)器教程 >  Linux 初始化MySQL 數(shù)據(jù)庫(kù)報(bào)錯(cuò)解決辦法

Linux 初始化MySQL 數(shù)據(jù)庫(kù)報(bào)錯(cuò)解決辦法

2019-09-04 09:22:32 9384

在Linux   CentOS 5 中安裝完MySQL (server、devel)之后進(jìn)行初始化


service mysqld  start ,執(zhí)行命令報(bào)錯(cuò):


Neither host 'localhost.localdomain' nor 'localhost' could be looked up with


/usr/bin/resolveip


Please configure the 'hostname' command to return a correct hostname.


錯(cuò)誤: 

解決辦法


1、查看/etc/hosts,內(nèi)容如下:


# Do not remove the following line, or various programs


# that require network functionality will fail.


::1 localhost.localdomain localhost


2、將::1修改為127.0.0.1后,啟動(dòng)成功。


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

這條文檔是否有幫助解決問題?

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

在文檔使用中是否遇到以下問題: