-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Database type/version conflict on config->start->get #58
Comments
I believe I ran into this issue as well
I believe the workaroud is just to modify And depending on what state the project is in, I needed to do a I tried to replicate this again to get a clearer reproduction steps but am failing to get the error message but pasting my output that I had below and the steps that I did was as follows
After modifying
|
If the database doesn't exist (if the project has never been started), there is nothing to do. If the database already exists, then one can either This is explained in the README notes |
DDEV in recent versions checks on start and config to make sure the configured database type/version is the same as the actual database type (if one exists).
So if people create a project (or it already exists), perhaps with the default mariadb:10.4 type, and then do a
ddev get
and the .platform/services.yml provides a different type or version, then people get a fairly ugly message.Failed to start WordPress-Composer-Template-Tester: Unable to start project WordPress-Composer-Template-Tester because the configured database type does not match the current actual database. Please change your database type back to mariadb:10.4 and start again, export, delete, and then change configuration and start. To get back to existing type use 'ddev config --database=mariadb:10.4' and then you might want to try 'ddev debug migrate-database mariadb:10.5', see docs at https://ddev.readthedocs.io/en/latest/users/extend/database_types/
Since that message is buried at the bottom of loads of incomprehensible complaints, it's annoying and difficult for a first-time user.
The text was updated successfully, but these errors were encountered: