导出报错
[ERROR] mysqld: Can't create/write to file '/tmp/ibN73PKN' (Errcode: 13 "Permission denied")
启动报错
[ERROR] mysqld: Can't create/write to file '/tmp/ibN73PKN' (Errcode: 13 "Permission denied")
详细报错内容:
2024-04-16 4:04:38 0 [Note] mysqld (mysqld 10.3.11-MariaDB-1:10.3.11+maria~bionic) starting as process 1 ...
2024-04-16 4:04:38 0 [Note] InnoDB: Using Linux native AIO
2024-04-16 4:04:38 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2024-04-16 4:04:38 0 [Note] InnoDB: Uses event mutexes
2024-04-16 4:04:38 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2024-04-16 4:04:38 0 [Note] InnoDB: Number of pools: 1
2024-04-16 4:04:38 0 [Note] InnoDB: Using SSE2 crc32 instructions
2024-04-16 4:04:38 0 [ERROR] mysqld: Can't create/write to file '/tmp/ibN73PKN' (Errcode: 13 "Permission denied")
2024-04-16 4:04:38 0 [ERROR] InnoDB: Unable to create temporary file; errno: 13
2024-04-16 4:04:38 0 [ERROR] mysqld: Can't create/write to file '/tmp/ibSAG6en' (Errcode: 13 "Permission denied")
2024-04-16 4:04:38 0 [ERROR] InnoDB: Unable to create temporary file; errno: 13
2024-04-16 4:04:38 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2024-04-16 4:04:38 0 [Note] InnoDB: Starting shutdown...
2024-04-16 4:04:38 0 [ERROR] Plugin 'InnoDB' init function returned error.
2024-04-16 4:04:38 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2024-04-16 4:04:38 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-04-16 4:04:38 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2024-04-16 4:04:38 0 [ERROR] Aborting
处理办法:
查看mysql用到的目录
如果没有安全管控,直接全部授权 chmod +x ../* -R
重启服务回复正常。