-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest MySQL image deprecated --default-authentication-plugin, database won't start on latest image #1816
Comments
This was fixed in VIP CLI 2.39.4. Please update your VIP CLI and let us know if the issue persists. Thank you! |
That was it, thank you! |
Dropping in here to say that even after the update to a newer version of VIP CLI I am still observing the issue described here. I completely uninstalled my old VIP CLI, removed the scaffolding files in Even then, when running Here is the container config vip downloaded, located at services:
database:
image: mysql:8
command: >-
docker-entrypoint.sh mysqld
--sql-mode=ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
--max_allowed_packet=67M
--default-authentication-plugin=mysql_native_password
ports:
- 127.0.0.1::3306
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
LANDO_NO_USER_PERMS: 1
LANDO_NO_SCRIPTS: 1
LANDO_NEEDS_EXEC: 1
volumes:
- database_data:/var/lib/mysql
networks: {}
volumes:
database_data: null
version: '3.6' When I attempt to start the dev-env, the database container crashes.
|
This is not correct: image: mysql:8 should be image: mysql:8.4 What does grep mysql "$(dirname "$(which vip)")/../lib/node_modules/@automattic/vip/assets/dev-env.lando.template.yml.ejs" yield? |
Interesting... so why would Docker be building off of what appears to be an outdated container image when the new one is just chilling there in |
fix(dev-env): force pull images on environment version update
According to this the latest image of MySQL deprecates the
--default-authentication-plugin
but not in a nice way. If you try to runvip dev-env create
it uses this latest image and the database container never spins up.This is fixed by following the solution they indicate and replacing the flag with
--mysql-native-password=ON
The text was updated successfully, but these errors were encountered: