Comments (4)
Not sure, would be easier restoring from a backup.
from alpine-mariadb.
Except when the past fortnight of backups face the exact same issue. Restoring from a backup means losing a fortnight of prod data.
Only once the container was restarted did the issue occur, until then it acted like nothing was wrong.
from alpine-mariadb.
If you create a custom config file called my.cnf and map it to /etc/my.cnf within the container, that has this within it;
innodb_force_recovery=1
Would look something like
mysql:
image: yobasystems/alpine-mariadb
environment:
MYSQL_ROOT_PASSWORD:
MYSQL_DATABASE:
MYSQL_USER:
MYSQL_PASSWORD:
expose:
- "3306"
volumes:
- /data/example/mysql:/var/lib/mysql
- /data/example/my.cnf:/etc/my.cnf
restart: always
from alpine-mariadb.
Little bit more info
https://mariadb.com/kb/en/innodb-recovery-modes/
https://mariadb.com/kb/en/innodb-system-variables/#innodb_corrupt_table_action
https://bobbyiliev.com/blog/start-mysql-mariadb-recovery-mode-due-to-innodb-coruption-on-cpanel
from alpine-mariadb.
Related Issues (20)
- Versioning and Tags HOT 1
- alpine-mariadb with python on Raspberry Pi 2 HOT 2
- Connecting to alpine-mariadb from another Docker container - arm32v7 HOT 2
- One core 100% used constantly HOT 2
- add support for galera HOT 1
- Cannot start on Raspberry Pi HOT 4
- prepend `use $MYSQL_DATABASE;` to .sql files HOT 4
- Any updates soon? HOT 3
- Config: Support `MARIADB_AUTO_UPGRADE` and `MARIADB_*` prefix for environment variables HOT 1
- Rpi 2b 1gb model yobasystems/alpine-mariadb:10.4.17-arm32v7 error on creation of db container for nginx proxy manager HOT 2
- Critical severity vulnerability found in zlib/zlib - yobasystems/alpine-mariadb:10 HOT 4
- sql file is in /docker-entrypoint-initdb.d was not executed correctly.
- Running a ัustom script when creating a database
- [Note] /usr/bin/mysqld (initiated by: unknown): Normal shutdown HOT 2
- MariaDB 11.0.x HOT 4
- 'arm32v7' OS/ARCH info states 'linux/arm64' HOT 5
- Github Container Registry HOT 1
- Run on Raspberry Pi 4 (march64) Docker "exited with code 159" HOT 3
- Change environment variable names to reflect changes in the official image HOT 1
- #68 Blocks `/docker-entrypoint-initdb.d/*` eval
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alpine-mariadb.