Linux 初始化MySQL 數(shù)據(jù)庫報錯解決辦法
發(fā)布日期:2022-08-03 12:21 | 文章來源:源碼中國
Linux 初始化MySQL 數(shù)據(jù)庫報錯解決辦法
在Linux CentOS 5 中安裝完MySQL (server、devel)之后進行初始化
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.
錯誤:
解決辦法
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后,啟動成功。
感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!
版權(quán)聲明:本站文章來源標注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務器上建立鏡像,否則將依法追究法律責任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學習參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。
相關(guān)文章