Ghost blog broken on upgrade to MySQL 8.4
If it ain't broke, don't fix it. I was doing a sweep of all my apps on my Unraid server and updating a few Docker containers and compose stacks. Because of the nature of how I defined the stack to...
If it ain't broke, don't fix it
I was doing a sweep of all my apps on my Unraid server and updating a few Docker containers and compose stacks.
Because of the nature of how I defined the stack to pull in mysql:8
Related Post: Self-Hosting a Ghost Blog on Your Homelab Using Unraid + Docker →
I inadvertently pulled in the latest 8.4 image and ran into this:
GitHub Issue: docker-library/mysql #1048 — "latest image has no connection" →
Not that I think anyone reads my posts, so the fact my site was down was purely self-discovered.
Quick solution - change this
command: '--default-authentication-plugin=mysql_native_password'
to something like this
command: '--mysql-native-password=ON'
... and your Ghost site should be back up and running.
Thoughts
- If you haven't already upgraded, perhaps stick to 8.3 or even better 8.0 (which I think is going to be supported for a while)
- Even with 8.4, the native password plugin is deprecated and you'll see warnings in the logs
- I should investigate options around authentication here, but I don't have the time to research this now. I have a workaround, and it is functional with my site back up again
- 8.4 does seem to be an LTS version though, so perhaps for the time being I should explicitly state that version/stream - at least so that I don't run into any surprises when 9+ inevitably gets released.
Further Reading