执行/usr/bin/mysqld_safe &后
出现:Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /tmp/mysqld.pid
061026 20:32:33 mysqld ended
查找日志:
File './localhost-bin.1' not found (Errcode: 13)
061026 20:27:59 [ERROR] Could not use localhost-bin for logging (error
13). Turning logging off for the whole duration of the MySQL
server process. To turn it on again: fix the cause, shutdown the MySQL server and restart it.
061026 20:27:59 [ERROR] Aborting
061026 20:27:59 [Note] /usr/libexec/mysqld: Shutdown complete
请大家帮个忙,一直没有整明白是个什么原因,请求给个解决问题的思路和方法。谢谢万分!
看这个问题好像是没有找到日志文件,不过这应该不影响启动的
我给出的方案是,你现在/etc/my.cnf中禁用日志
然后在启动mysql,看看是否包错,错误又是什么
同时注意下目录的权限问题
谢谢你 我试了禁用日志
出现的错误是:
061029 01:49:41 mysqld started
061029 1:49:41 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: 'create'.
InnoDB: Cannot continue operation.
061029 01:49:41 mysqld ended
所以感觉这不是问题的根本所在 。
我的问题同你的一样,只是我的停止路径跟你的不一样,我的错误日志同你的也不一样,我按照错误提示建立了一个pid文件,就可以启动了,你可以试一下,比较奇怪.
[
本帖最后由 Aramis 于 2006-10-29 22:59 编辑 ]
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
不是写了很清楚了
是权限的问题了
我一开始也说了
版主厉害 谢谢非常 我改了 /var/lib/mysql 的权限后数据库起来了
根据下面的错误提示
“Could not use localhost-bin for logging ”
找到了localhost-bin 文件的位置 再修改他的用户权限 ,我想这个思路可以为以后遇到同样问题的朋友提供一个解决问题的思路,嘿嘿。
自己之前遇到问题总是吓折腾,现在慢慢摸索解决问题的思路,这应该才是学习的根本办法。
也很感谢Aramis
嘿嘿
请问楼主哪里查到的mysql日志?
请问楼主哪里查到的mysql日志?
mysql/var/XXX.err
自己找到了,这个:mysql/var/XXX.err
{tag_点击标签样式三}