Wednesday, August 11, 2010

ubuntu下MySQL服务器更改目录后问题

[cc lang="text"]
100811 18:42:06 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.
[/cc]
修改下面文件中得权限列表可解决问题。
[cc lang="text"]/etc/apparmor.d/usr.sbin.mysqld[/cc]
[cc lang="text"]/web/data/mysql/ r,
/web/data/mysql/** rwk,[/cc]

No comments:

Post a Comment