初始化mysql时出现如下报错(已经修改过tmp文件夹权限)
$ systemctl start mysqld.service
mysqld: Can't create/write to file '/tmp/ib82qkog' (OS errno 13 - Permission denied)
2019-03-18T10:51:08.597298Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.15) starting as process 39958
2019-03-18T10:51:08.604992Z 1 [ERROR] [MY-012576] [InnoDB] Unable to create temporary file; errno: 13
2019-03-18T10:51:08.605042Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.
2019-03-18T10:51:08.605087Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
2019-03-18T10:51:08.605204Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2019-03-18T10:51:08.605271Z 0 [ERROR] [MY-010119] [Server] Aborting
2019-03-18T10:51:08.605812Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.15) MySQL Community Server - GPL.
试试
# chown root:root /tmp
# chmod 1777 /tmp
你是怎么修改 /tmp 文件夹权限的?
– dudu 5年前@dudu: chmod 777 /tmp
– 1440min 5年前