After one of the last system updates I've got serious problems with mysqld (mariadb):
- during startup problems were reported with system tables in system.log : this seemed to be corrected by running "mysqlcheck"
- after this the following Out-of-memory-error during startup remains :
-----------------------------------------------------------------------------------------------------------------------------------------
Jul 31 16:04:03 mars mysqld[8657]: 140731 16:04:03 [Note] InnoDB: Waiting for purge to start
Jul 31 16:04:03 mars mysqld[8657]: 140731 16:04:03 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.17-65.0 started; log sequence nu
mber 5497377
Jul 31 16:04:03 mars mysqld[8657]: 140731 16:04:03 [ERROR] mysqld: Out of memory (Needed 130760704 bytes)
Jul 31 16:04:03 mars mysqld[8657]: 140731 16:04:03 [Note] Plugin 'FEEDBACK' is disabled.
-----------------------------------------------------------------------------------------------------------------------------------------
he effect: mysqld runs with 98% CPU-load permanently after startup. although no client is running (no apache, no minidlna,...)!!!!
Therefore I decided to reinstall mariadb. But after deinstalling no new installation was possible, since the default memory requirements in the pacman-package cause the installation sequence to fail !!!
Any idea how to get mysql running on Raspberry Pi ?
Here the failure of the installation via pacman:
(13/13) Prüfe auf Dateikonflikte [##################################################] 100%
(13/13) Überprüfe verfügbaren Festplattenspeicher [##################################################] 100%
( 1/13) Installiere mariadb [##################################################] 100%
Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
140731 15:15:35 [Note] InnoDB: Using mutexes to ref count buffer pool pages
140731 15:15:35 [Note] InnoDB: The InnoDB memory heap is disabled
140731 15:15:35 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
140731 15:15:35 [Note] InnoDB: Compressed tables use zlib 1.2.8
140731 15:15:35 [Note] InnoDB: Using Linux native AIO
140731 15:15:35 [Note] InnoDB: Not using CPU crc32 instructions
140731 15:15:35 [Note] InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(135987200 bytes) failed; errno 12
140731 15:15:35 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
140731 15:15:35 [ERROR] Plugin 'InnoDB' init function returned error.
140731 15:15:35 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140731 15:15:35 [ERROR] mysqld: Out of memory (Needed 130760704 bytes)
140731 15:15:35 [ERROR] Unknown/unsupported storage engine: InnoDB
140731 15:15:35 [ERROR] Aborting
140731 15:15:35 [Note] /usr/sbin/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.