
Instalé el servidor Mysql 5.7.9 en RHEL 6.5 usando mysql57-community-release-el6-7.noarch.rpm Repo. Y la instalación fue exitosa pero cuando intento iniciarla me da errores. Y de /var/log/mysqld.log obtengo estos registros
> 2016-02-16T08:16:55.473839Z 0 [Note] InnoDB: PUNCH HOLE support
> available 2016-02-16T08:16:55.473945Z 0 [Note] InnoDB: Mutexes and
> rw_locks use GCC atomic builtins 2016-02-16T08:16:55.473983Z 0 [Note]
> InnoDB: Uses event mutexes 2016-02-16T08:16:55.474011Z 0 [Note]
> InnoDB: GCC builtin __sync_synchronize() is used for memory barrier
> 2016-02-16T08:16:55.474038Z 0 [Note] InnoDB: Compressed tables use
> zlib 1.2.3 2016-02-16T08:16:55.474062Z 0 [Note] InnoDB: Using Linux
> native AIO 2016-02-16T08:16:55.474908Z 0 [Note] InnoDB: Number of
> pools: 1 2016-02-16T08:16:55.475257Z 0 [Note] InnoDB: Not using CPU
> crc32 instructions mysqld: Can't create/write to file '/tmp/ibUFqzVe'
> (Errcode: 13 - Permission denied) 2016-02-16T08:16:55.475430Z 0
> [ERROR] InnoDB: Unable to create temporary file; errno: 13
> 2016-02-16T08:16:55.475460Z 0 [ERROR] InnoDB: Plugin initialization
> aborted with error Generic error 2016-02-16T08:16:55.475490Z 0 [ERROR]
> Plugin 'InnoDB' init function returned error.
> 2016-02-16T08:16:55.475515Z 0 [ERROR] Plugin 'InnoDB' registration as
> a STORAGE ENGINE failed. 2016-02-16T08:16:55.475536Z 0 [ERROR] Failed
> to initialize plugins. 2016-02-16T08:16:55.475557Z 0 [ERROR] Aborting
>
> 2016-02-16T08:16:55.475583Z 0 [Note] Binlog end
> 2016-02-16T08:16:55.475695Z 0 [Note] Shutting down plugin
> 'keyring_file' 2016-02-16T08:16:55.476442Z 0 [Note] /usr/sbin/mysqld:
> Shutdown complete
>
> 2016-02-16T08:16:55.502968Z mysqld_safe mysqld from pid file
> /var/run/mysqld/mysqld.pid ended
Algún consejo de qué habla este error...
Respuesta1
El servidor MySQL no puede acceder a su directorio /tmp para escribir y crear archivos temporales. Asegúrese de que el directorio /tmp sea propiedad del usuario root y que el bit adhesivo esté configurado en el directorio /tmp. Escriba los siguientes comandos para corregir este error. Debe iniciar sesión como usuario root y escribir:
raíz de chown: raíz /tmp
chmod 1777/tmp
Pruébalo
/etc/init.d/mysqld inicio
Respuesta2
> [ERROR] InnoDB: Unable to create temporary file; errno: 13
Esta línea parece un problema allí. Intente verificar si /tmp
el directorio existe (debería) y está disponible para el usuario de MySQL (o el usuario que utiliza). Puedes intentar usar una ruta diferente --tmpdir
o una opción dentro de la configuración, más informaciónen documentos).
También puede haber problemas con SELinux (si está en modo Enforcing). Verifique su registro de auditoría (por ejemplo, con ausearch -ts today -m avc | audit2allow
) si el directorio /tmp no está bloqueado para mysql. Para pruebas, puede desactivar SELinux con setenforce 0
.