Skip to content

Question: How do I set my innodb_page_size? #1014

@cleder

Description

@cleder

I tried to add this option:

/usr/local/bin/docker-entrypoint.sh --innodb-page-size=64KB --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --sql-mode=NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION --general-log=1 --general-log-file=/var/lib/mysql/general-log.log"

which results in:

2023-11-29T10:19:30.007248Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.35) starting as process 7
2023-11-29T10:19:30.013802Z 0 [Warning] [MY-012363] [InnoDB] innodb-page-size has been changed from the default value 16384 to 65536.
2023-11-29T10:19:30.016753Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-11-29T10:19:30.091725Z 1 [ERROR] [MY-012222] [InnoDB] Data file './ibdata1' uses page size 16384, but the innodb_page_size start-up parameter is 65536
2023-11-29T10:19:30.091762Z 1 [ERROR] [MY-012237] [InnoDB] Corrupted page [page id: space=0, page number=0] of datafile './ibdata1' could not be found in the doublewrite buffer.
2023-11-29T10:19:30.091771Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.
2023-11-29T10:19:30.590935Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
2023-11-29T10:21:13.246613Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2023-11-29T10:21:13.246632Z 0 [ERROR] [MY-010119] [Server] Aborting

Is there a way to set the innodb_page_size?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions