mysql安装error13_mysqld:无法创建/写入文件(错误代码:13)

我最近在我的arch

linux盒子上安装了mariadb,并希望用不同的数据和tmp目录运行

mysqld

[mysqld]

user = mysql

port = 3306

datadir =

tmpdir = /tmp

运行mysqld时,我收到以下错误消息:

InnoDB: The InnoDB memory heap is disabled

InnoDB: Mutexes and rw_locks use GCC atomic builtins

InnoDB: Compressed tables use zlib 1.2.8

InnoDB: Using Linux native AIO

[ERROR] mysqld: Can't create/write to file '/tmp/ib8dOkCX' (Errcode: 13)

InnoDB: Error: unable to create temporary file; errno: 13

[ERROR] Plugin 'InnoDB' init function returned error.

[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.

[ERROR] mysqld: Can't create/write to file '/aria_log_control' (Errcode: 13)

[ERROR] mysqld: Got error 'Can't create file' when trying to use aria control file '/aria_log_control'

[ERROR] Plugin 'Aria' init function returned error.

[ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.

[ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

[ERROR] Unknown/unsupported storage engine: InnoDB

[ERROR] Aborting

[Note] mysqld: Shutdown complete

我确保mysql用户是所有者,并且对数据和tmp目录具有适当的权限.

当以root身份运行mysqld时,一切正常.当使用默认的tmpdir时,我仍然在创建/写入文件/ aria_log_control时收到错误.谁知道我失败的地方?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值