mysql:除了/ tmp之外,不能将tmpdir更改为任何内容

时间:2014-04-17 09:53:22

标签: mysql innodb tmp

我以root用户身份创建/ mysqltmp目录,并赋予它与/ tmp目录(chmod 1777 / mysqltmp)相同的权限。但是当我启动mysql时,服务无法启动,我在日志中收到以下错误:

/usr/sbin/mysqld: Can't create/write to file '/mysqltmp/ib9AeHFf' (Errcode: 13)
140417  9:46:46  InnoDB: Error: unable to create temporary file; errno: 13
140417  9:46:46 [ERROR] Plugin 'InnoDB' init function returned error.
140417  9:46:46 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140417  9:46:46 [ERROR] Unknown/unsupported storage engine: InnoDB
140417  9:46:46 [ERROR] Aborting

错误13是"权限被拒绝"。

MySQL服务器版本为5.5.35,操作系统为Ubuntu 12.04.4。

0 个答案:

没有答案