GithubHelp home page GithubHelp logo

Comments (4)

dominictayloruk avatar dominictayloruk commented on August 16, 2024

Not sure, would be easier restoring from a backup.

from alpine-mariadb.

NaruZosa avatar NaruZosa commented on August 16, 2024

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.

dominictayloruk avatar dominictayloruk commented on August 16, 2024

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.

dominictayloruk avatar dominictayloruk commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.