[en] Fix bug Laradock on Mac [ERROR] Unknown/unsupported storage engine: InnoDB

After I change the docker storage and reinstall laradock. I can't start mariadb. Try docker logs laradock_mariadb_1, I receive this
Code:
2020-07-08 10:03:53+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.5.4+maria~focal started.
2020-07-08 10:03:57+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2020-07-08 10:03:57+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.5.4+maria~focal started.
2020-07-08 10:03:58 0 [Note] mysqld (mysqld 10.5.4-MariaDB-1:10.5.4+maria~focal) starting as process 1 ...
2020-07-08 10:03:58 0 [Note] InnoDB: Using Linux native AIO
2020-07-08 10:03:58 0 [Note] InnoDB: Uses event mutexes
2020-07-08 10:03:58 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-07-08 10:03:58 0 [Note] InnoDB: Number of pools: 1
2020-07-08 10:03:58 0 [Note] InnoDB: Using SSE4.2 crc32 instructions
2020-07-08 10:03:58 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
2020-07-08 10:03:58 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
2020-07-08 10:03:58 0 [Note] InnoDB: Completed initialization of buffer pool
2020-07-08 10:03:58 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-07-08 10:03:58 0 [ERROR] InnoDB: Upgrade after a crash is not supported. The redo log was created with MariaDB 10.4.12.
2020-07-08 10:03:58 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2020-07-08 10:03:58 0 [Note] InnoDB: Starting shutdown...
2020-07-08 10:03:59 0 [ERROR] Plugin 'InnoDB' init function returned error.
2020-07-08 10:03:59 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2020-07-08 10:03:59 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-07-08 10:03:59 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2020-07-08 10:03:59 0 [ERROR] Aborting
So the problem is the new mariadb container with point to ~/.laradock/data/mariadb to get a data, and it not support crash data.
My solution is, backup this ~/.laradock/data/mariadb then restart mariadb container
Code:
cd ~/.laradock/data
mv mariadb mariadb_backup
docker start laradock_mariadb_1
 

Facebook Comments

Top