Mysql | Docker → Can’t start Container because of Boot Server Version Error.
When I was trying to boot up my Docker container for MySQL, it kept exiting immediately. Upon further investigation, I found from the docker logs:
docker logs NAME_OF_MY_CONTAINER
I found these errors:
The particular error that stood out was this one…
021–05–14T17:06:45.832247Z 1 [ERROR] [MY-013171] [InnoDB] Cannot boot server version 80023 on data directory built by version 80025. Downgrade is not supported
The problem was that my versions were out of sync because I updated my local Linux server to MySQL 8.0.25, end my Docker container was running 8.0.23, which I totally spaced it on my updates
The solution was simply rebuilding the container with the newer version of MySQL and then restarting the container.
Like all things, makes sure you are comparing Apples to Apples when troubleshooting. Sometimes, a green apple might simply be a pear.