Linux 初始化MySQL 數據庫報錯解決辦法
在Linux CentOS 5 中安裝完MySQL (server、devel)之后進行初始化
service mysqld start ,執行命令報錯:
Neither host 'localhost.localdomain' nor 'localhost' could be looked up with/usr/bin/resolveipPlease configure the 'hostname' command to return a correct hostname.
錯誤:
解決辦法
1、查看/etc/hosts,內容如下:
# 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后,啟動成功。
感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!
新聞熱點
疑難解答
圖片精選