LoginSignup
0
1

More than 1 year has passed since last update.

[InnoDB] Cannot boot server version 800xx on data directory built by version 800xx. Downgrade is not supported

Last updated at Posted at 2022-09-07

When try to boot up my Docker container for MySQL, it kept exiting immediately.

Error log:

``

1 [ERROR] [MY-013171] [InnoDB] Cannot boot server version 80021 on data directory built by > version 80022. Downgrade is not supported
mysqld: Can't open file: 'mysql.ibd' (errno: 0 - )
1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
0 [ERROR] [MY-010119] [Server] Aborting
``

Problem:

Docker container is created for MySQL8.0.22 at before, and I update Dockerfile to running older 8.0.21. But the OLD image is still contained by Docker Desktop.

Remove image from Docker Desktop will not work. It will still Contained by Docker.

The solution:

  1. Delete all old images using Docker rmi command not Docker Desktop.
    [x] Didn't work
  2. Clear build cahche
    docker builder prune
    [x] Didn't work
  3. Clear all volumes
    docker system df
    docker volume prune
    [O] worked!
  4. rebuild the container with the older version of MySQL and then restarting the container.

Reference(Thanks!):
Mysql | Docker → Can’t start Container because of Boot Server Version Error.
DockerのBuild Cacheの削除

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1