2007年07月25日

F7在默认安装后启动时会出错:

使用mysqld_safe启动:

[cocobear@cocobear ]$ sudo mysqld_safe
nohup: ignoring input and redirecting stderr to stdout
Starting mysqld daemon with databases from /var/lib/
STOPPING server from pid file /var/lib//cocobear.pid
070725 09:27:34 mysqld ended

使用service启动:

[cocobear@cocobear ]$ sudo service mysqld start
Timeout error occurred trying to start Daemon.
启动 : [失败]

这种情况下.log出错提示为:

070725 09:28:59 mysqld started
070725 9:28:59 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: ‘open’.
InnoDB: Cannot continue operation.
070725 09:28:59 mysqld ended

根据日志文件的出错信息大致可以认定为权限问题,修改/var/lib//下的这几个文件权限:
ibdata1 ib_logfile0 ib_logfile1

[cocobear@cocobear ]$ sudo chmod 766 ib*

然后重新启动:

[cocobear@cocobear ]$ sudo service mysqld start
启动 : [确定]

很奇怪为什么会产生这样的问题,纳闷~

标签 :

6 楼了已经

  • Name写于07年07月26日

    路过~~

  • br写于07年07月26日

    没有遇到过,找到原因了赶紧贴出来哦

  • cocobear写于07年07月29日

    http://iamin.blogdriver.com/iamin/1239091.html

    http://www.research.att.com/~bala/papers/h0vh1.html

  • crazyfranc写于07年07月31日

    P哥.我网站被封了咋办?–总不能凉拌吧!没备案,还有补救方法没.

  • cocobear写于07年08月01日

    已经帮你更换了IP
    不过DH说这是最后一次允许我换IP了:-(

    不知道这个IP为什么会被封,郁闷。

  • windflush写于07年08月04日

    这么惨?为什么会被封啊???
    不会哪天又轮到我们之中的谁了吧。

发表评论

在下面加入你的评论,或者 trackback 从你的博客站点。 订阅本文的评论。

:

:

:

« 回家这几天
» 历时5天的php+mysql留言板完成