Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As seen here it's not so obvious what to fill into the $dburl line in include/conf.php.
My suggestion to clarify this a bit:
Replace
# $db_url = "mysql://user:password@hostname/database";
with
# $db_url = "mysql://dbuser:dbpassword@dbhostname/database";
This should make it a little clearer that the database user, password and host is meant.
The same should be done with the PostgreSQL line...
Comment | File | Size | Author |
---|---|---|---|
#4 | db_hostname.patch | 550 bytes | Bèr Kessels |
#2 | settings.php.patch | 551 bytes | Chris Johnson |
#1 | conf.php.patch | 579 bytes | Chris Johnson |
Comments
Comment #1
Chris Johnson CreditAttribution: Chris Johnson commentedHere's a simple patch against 4.5.2.
Comment #2
Chris Johnson CreditAttribution: Chris Johnson commentedAnd here is the equivalent patch for HEAD, against settings.php.
Comment #3
tangent CreditAttribution: tangent commentedMakes sense to me. +1
Comment #4
Bèr Kessels CreditAttribution: Bèr Kessels commented+1 from me. This very small change makes it very clear that we do not want the hostname of the server, but of the database.
One small question: in drupal we use underscores to mark words everywhere (functions, variables, modules, themes etc.) so can you use db_hostname?
Attached patch does that.
Comment #5
Dries CreditAttribution: Dries commentedErr, your patch looks inconsistent: it only uses underscore on some strings. I'll fix it up and commit it to HEAD.
Comment #6
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #7
(not verified) CreditAttribution: commented