日本三级片在线观看视频_西西大胆午夜人体视频无码_少妇无码一区二区_亚洲天堂超碰_极品少妇被猛的白浆直流_91精品云霸高清中文字幕_草草五月天伊人_久久少妇无码专区_欧美激欧美啪啪5老太_日韩在线在线成人

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

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

2018-10-15 11:22:17 12912

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


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


service mysqld  start ,執(zhí)行命令報錯:


Neither host 'localhost.localdomain' nor 'localhost' could be looked up with
 
/usr/bin/resolveip
 
Please configure the 'hostname' command to return a correct hostname.

錯誤: 

解決辦法

查看/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后,就能啟動成功了。


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

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

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

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