Linux 初始化MySQL 數(shù)據(jù)庫(kù)報(bào)錯(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ò)誤:
解決辦法
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)成功。