Closed (works as designed)
Project:
Documentation
Component:
Correction/Clarification
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2025 at 13:13 UTC
Updated:
11 Sep 2025 at 19:25 UTC
Jump to comment: Most recent
Comments
Comment #2
avpadernoComment #3
avpadernoComment #4
ian_grant commentedI finally figured out that running this command:
dev drush site:install --account-name=admin --account-pass=admin -ytold Drupal about the database, letting me login. Maybe something like that should be in the instructions?
Comment #5
avpadernoComment #6
avpadernoFor what I recall, the default database credentials used by DDEV are always the same, independently from the project. After
ddev start,ddev describewill report the database credentials, which is helpful in the case the project uses different credentials.Comment #7
avpadernoThe database name, the database host, the database port, the credentials, and the database name are in the settings.ddev.php file, which contains lines like the following ones.
I am not sure it is necessary to add that information in the documentation for Drupal CMS. That should be placed in the DDEV documentation.
Comment #8
eojthebraveIf you follow the instructions documented on this page https://new.drupal.org/docs/drupal-cms/get-started/install-drupal-cms/in... you shouldn't need to do anything with db credentials. DDEV should take care of it automatically. I just tested again to verify, and it was working as expected. If you're being prompted for db credentials it means something wasn't working correctly during the install, or that you maybe followed a different set of instructions than those outlined.
And, as @avpaderno points out this should be (and is https://docs.ddev.com/en/stable/users/usage/database-management/, and https://docs.ddev.com/en/stable/users/usage/cms-settings/#cms-specific-h...) part of the DDEV documentation.
Thanks for the suggestion. Though I'm not sure it's necessary to update the page and we can instead close this issue. Though feel free to re-open if you disagree and can provide more insight into why the change is needed.