我正在运行ubuntu12.04,并将mysql服务器的datadir (保留相同的所有权和权限)从/var/lib/mysql移到/etc/mysql/my.cnf中的/u/app/mysql,然后更新/etc/parmor.d/usr.sbin.mysqld,包括:
/u/apps/mysql r,
/u/apps/mysql/** rwk,但是得到错误:
InnoDB: Reading tablespace information from the .ibd files...
130906 13:55:31 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 .
InnoDB: File operation call: 'opendir'.
InnoDB: Cannot continue operation.所以我禁用了装置然后就启动了。看起来它要打开的目录是“.”我原以为是/u/app/mysql,但显然不是。由于设备配置的改变,它肯定取得了进一步的进展,但我不知道它在窒息什么。有什么好主意吗?谢谢..。
发布于 2013-09-09 03:05:38
看来您对mysql datadir有权限问题。
130906 13:55:31 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.您可以更改datadir的权限并将所有权更改为mysql吗?一旦完成,请重新启动Mysql。
发布于 2013-09-24 23:45:19
我不知道当最初的条目是"/var/lib/mysql/** rwk“和/u/app/mysql显然拥有mysql.mysql时,当我将设置更改为”/u/app/** rwk“时,我不明白为什么会对此犹豫不决。
https://serverfault.com/questions/537084
复制相似问题