【发布时间】:2014-01-29 15:08:24
【问题描述】:
如何解决这个问题?
陈?
chown:更改/var/lib/mysql/ibdata1': Operation not permitted
chown: changing ownership of/var/lib/mysql/denora' 的所有权:不允许操作
chown:更改/var/lib/mysql/anope': Operation not permitted
chown: changing ownership of/var/lib/mysql/test'的所有权:不允许操作
chown:更改/var/lib/mysql/Animachat.svipchat.org.err': Operation not permitted
chown: changing ownership of/var/lib/mysql/vpsgabriel.svipchat.org.err 的所有权:不允许操作
chown:更改/var/lib/mysql/ib_logfile1': Operation not permitted
chown: changing ownership of/var/lib/mysql/mysql'的所有权:不允许操作
chown:更改 /var/lib/mysql/wp': Operation not permitted
chown: changing ownership of/var/lib/mysql/ib_logfile0' 的所有权:不允许操作
MysqlD 开始了吗?
[root@SSH mysql]# sudo /etc/init.d/mysqld restart 停止 mysqld:[确定] MySQL 守护程序无法启动。 启动 mysqld:[失败]
记录 MySQLd:
140129 09:39:37 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140129 9:39:37 [Warning] '--safe-show-database' is deprecated and will be removed in a future release. Please use 'GRANT SHOW DATABASES' instead.
140129 9:39:37 InnoDB: Initializing buffer pool, size = 8.0M
140129 9:39:37 InnoDB: Completed initialization of buffer pool
140129 9:39:37 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.
140129 09:39:37 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
140129 09:40:05 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140129 9:40:05 [Warning] '--safe-show-database' is deprecated and will be removed in a future release. Please use 'GRANT SHOW DATABASES' instead.
140129 9:40:05 InnoDB: Initializing buffer pool, size = 8.0M
140129 9:40:05 InnoDB: Completed initialization of buffer pool
140129 9:40:05 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.
140129 09:40:05 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
140129 09:42:02 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140129 9:42:02 [Warning] '--safe-show-database' is deprecated and will be removed in a future release. Please use 'GRANT SHOW DATABASES' instead.
140129 9:42:02 InnoDB: Initializing buffer pool, size = 8.0M
140129 9:42:02 InnoDB: Completed initialization of buffer pool
140129 9:42:02 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.
140129 09:42:02 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
140129 09:44:55 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140129 9:44:55 [Warning] '--safe-show-database' is deprecated and will be removed in a future release. Please use 'GRANT SHOW DATABASES' instead.
140129 9:44:55 InnoDB: Initializing buffer pool, size = 8.0M
140129 9:44:55 InnoDB: Completed initialization of buffer pool
140129 9:44:55 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.
140129 09:44:55 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
【问题讨论】:
-
-1 表示不阅读日志:
The error means mysqld does not have the access rights to the directory. -
Chmod ? chmod:更改
Animachat.svipchat.org.err': Operation not permitted chmod: changing permissions ofanope'的权限:不允许操作 chmod:更改denora': Operation not permitted chmod: changing permissions ofib_logfile0'的权限:不允许操作 chmod:更改ib_logfile1': Operation not permitted chmod: changing permissions ofibdata1'的权限:不允许操作