I was just following a complete newbie when he installed Drupal. I will skip the database-import part, it was hell :) But more important, IMO is that he could not really read the documentation in settings.php correctly. He assumed the part localhost/database in
mysql://username:password@localhost/database
referred to his database directory. Since he was working on localhost, and knew nothing of the concept of a SQL server, this is not too odd.
So I chnaged this into mysql://username:password@databaseserver/databasename
in the attached patch. The filled out example reamins the same, with localhost in the url (since 99% has localhost as sql server)
Note: I purposely did not user database_name, sinxce that will be confused with the prefix documentation, which uses the _ in its examples. And I hate (or well... dislike) CamelCase.
Comment | File | Size | Author |
---|---|---|---|
settings_clarify.patch | 814 bytes | Bèr Kessels | |
Comments
Comment #1
Bèr Kessels CreditAttribution: Bèr Kessels commentedComment #2
Bèr Kessels CreditAttribution: Bèr Kessels commentedPatch still applies. Its a minor patch, but with some usability improvment. Please review!
Comment #3
breyten CreditAttribution: breyten commentedBut perhaps a small message could be added that the database server is usually localhost? I think that makes it clearer why the first line says databaseserver and the second localhost.
Comment #4
drummI think seprarting things out into different lines might be worth considering.
This is good too.
Comment #5
Bèr Kessels CreditAttribution: Bèr Kessels commenteddrumm, I do not understand you comment. Waht would need to be spread out over separate lines? Are you hindting at
$database = 'drupal';
$database_suer = 'foo';
etc?
Comment #6
Dries CreditAttribution: Dries commentedThe documentation says 'database name' -- how can he get confused? I don't think adding 'name' automagically solves this.
Comment #7
drummYes. That is exactly what I was trying to say.
Comment #8
Bèr Kessels CreditAttribution: Bèr Kessels commentedhuh? No,
the files says: mysql://username:password@localhost/database
which is 1) inconsistent: averything is a "variable", but not localhost. That shouls say "databaseserver. Patch does that.
2) a bit confusing. database could be a diretory. databasename is clearer that it needs to be a databasename.