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:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

我的栏目

日历

« 2008-09-07  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 55704
  • 日志数: 170
  • 图片数: 12
  • 文件数: 6
  • 书签数: 10
  • 建立时间: 2007-02-10
  • 更新时间: 2008-01-14

RSS订阅

Open Toolbar