LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 663|回复: 2

mysql无法启动的问题 系统为FC6 错误 如下: mysql无法启动的问题

[复制链接]
发表于 2007-1-20 19:08:06 | 显示全部楼层 |阅读模式
mysql无法启动的问题
系统为FC6
错误 如下:
[root@localhost lib]# /etc/init.d/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 script with
the --force option


[root@localhost lib]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
发表于 2007-1-21 05:23:46 | 显示全部楼层
主机名的问题,要更改主机名(hostname),最好是改成localhost
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-21 13:27:57 | 显示全部楼层
已改为LOCALHOST,但错误依旧。想FC6刚出来时MYSQL没这种情况。怕是我升级后出的问题。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表