您的位置 首页 错误

Unable to create temporary file inside “/tmp”; errno: 13 解决方案

ASD 安装 mysql 遇到的问题:

提示权限不足:

这个代码是一个典型的写文件错误的日志记录。其中的“errno”表示错误代码,13 表示权限不足。这意味着 MySQL 所在的用户没有足够的权限来创建临时文件。

023-09-13T01:48:01.142781Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-09-13T01:48:01.149560Z 1 [ERROR] [MY-012576] [InnoDB] Unable to create temporary file inside "/tmp"; errno: 13
2023-09-13T01:48:01.149647Z 1 [ERROR] [MY-012929] [InnoDB] InnoDB Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
2023-09-13T01:48:01.149844Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2023-09-13T01:48:01.149948Z 0 [ERROR] [MY-013236] [Server] The designated data directory /data/mysql/8026/data/ is unusable. You can remove all files that the server added to it.
2023-09-13T01:48:01.150068Z 0 [ERROR] [MY-010119] [Server] Aborting
2023-09-13T01:48:01.150645Z 0 [System] [MY-010910] [Server] /soft/mysql-8.0.26-linux-glibc2.12-x86_64/bin/mysqld: Shutdown complete (mysqld 8.0.26)  MySQL Community Server - GPL.

 

所以我们检查一下  /tmp 的 权限

ll -d /tmp/

 

正常的事这样的:

 

如果不是 请执行:

chmod 777 /tmp/

 

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章