Atualmente executando um servidor nginx com o wordpress, recebo um erro no banco de dados após alguns minutos de execução.
Ao executar o comando para verificar os logs:
# tail -f /var/log/mysqld.log
a saída do comando é :
2019-09-12 19:11:24 25864 [Note] Plugin 'FEDERATED' is disabled.
2019-09-12 19:11:24 25864 [Note] InnoDB: Using atomics to ref count buffer pool pages
2019-09-12 19:11:24 25864 [Note] InnoDB: The InnoDB memory heap is disabled
2019-09-12 19:11:24 25864 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-09-12 19:11:24 25864 [Note] InnoDB: Memory barrier is not used
2019-09-12 19:11:24 25864 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-09-12 19:11:24 25864 [Note] InnoDB: Using Linux native AIO
2019-09-12 19:11:24 25864 [Note] InnoDB: Using CPU crc32 instructions
2019-09-12 19:11:24 25864 [Note] InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
2019-09-12 19:11:24 25864 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2019-09-12 19:11:24 25864 [ERROR] Plugin 'InnoDB' init function returned error.
2019-09-12 19:11:24 25864 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2019-09-12 19:11:24 25864 [ERROR] Unknown/unsupported storage engine: InnoDB
2019-09-12 19:11:24 25864 [ERROR] Aborting
Pelo erro no texto grifado, fiz uma alteração no arquivo my.cn e o erro foi resolvido.
innodb_buffer_pool_size = 20M
Apos reiniciar o serviço
# systemctl restart mysql
Pode observar que o erro foi solucionado.
Espero que isso ajude muitas pessoas.
Comentários
Postar um comentário