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

幫助中心 >  技術(shù)知識(shí)庫 >  數(shù)據(jù)庫 >  數(shù)據(jù)庫管理 >  Linux 初始化MySQL數(shù)據(jù)庫報(bào)localhost.localdomain錯(cuò)誤的解決辦法

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

2018-10-15 11:22:17 9433

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


在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ò)誤: 

解決辦法

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


# Do not remove the following line, or various programs
 
# that require network functionality will fail.
 
::1 localhost.localdomain localhost

將::1修改為127.0.0.1后,就能啟動(dòng)成功了。


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

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

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

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