From 15c59e6d672023c8e3411fb83a08a667e12d8b2e Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 2 Nov 2015 13:54:34 +0100 Subject: [PATCH] Avoid self corruption of mysql on power failure By default, mysql creates its mysql database in MyISAN mode which self corrupt itself way too frequently on the internet cube configuration. InnoDB seems fine in comparison. Also MyISAN is bullcrap. --- data/templates/mysql/my.cnf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/templates/mysql/my.cnf b/data/templates/mysql/my.cnf index 2d4e1df2a..cf9e6ddd7 100644 --- a/data/templates/mysql/my.cnf +++ b/data/templates/mysql/my.cnf @@ -36,6 +36,9 @@ read_rnd_buffer_size = 256K net_buffer_length = 2K thread_stack = 128K +# to avoid corruption on powerfailure +default-storage-engine=innodb + # Don't listen on a TCP/IP port at all. This can be a security enhancement, # if all processes that need to connect to mysqld run on the same host. # All interaction with mysqld must be made via Unix sockets or named pipes.