FC6中mysql初始化失败
上一篇 /
下一篇 2007-05-04 12:27:30
[root@localhost /]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@localhost /]# service mysqld start
初始化 MySQL 数据库: Neither host 'localhost.localdomain' nor 'localhost' could be looked up with
/usr/bin/resolveip
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this scrīpt with
the --force option
[失败]
[root@localhost /]# ping localhost
ping: unknown host localhost
然后
通过
system-config-network来修改“主机”把其中的IP地址改为127.0.0.1
可刚改后,那条记录就没了,重启后记录还是没有,法这mysql是能正常初始化了
不过也可以自己修改
/etc/hosts
/etc/sysconfig/networking/profiles/default/hosts
把其中的::1改成127.0.0.1就行了
导入论坛
收藏
分享给好友
管理
举报
TAG: