I'm updating my install from 7.8 to 7.12

Up to fixing up the settings.php

As I read through the file, it shows an entry that should be appropriate for a single database, this is my setup.
My old settings.php has the database entries at a point further down, which is still in the new file, that is as follows:

$databases = array ();

However, the example begins and ends the entry with "@code" and "@endcode" The above location is not bounded by these items.

I'm not sure if I have to enter these, ignore the $databases = array (); entry and create a new block framed by the @code entry, or something else. Not finding an answer in the forums, I assume this is something fundamental to php, but I haven't figured it out yet.

Comments

fejn’s picture

The @code/@endcode
you ran into in the settings.php file comments are part of the "Doxygen" automatic documentation markup used to delimit a comment as a code example. As such, you probably want to set up your databases array much as shown in the example (without the @code/@endcode delimiter lines), substituting in appropriate values for the parameters. In 7.12, the install procedure does a good job of setting this stuff up for you automatically; you might find it interesting to copy default.settings.php -> settings.php and do a system install, and then compare the database arrays in the 2 files. To do this, you should know the following values for your installation before starting, as the process asks you for them:
'database' -> your DB name
'username' -> DB username
'password' -> passwod required for DB access
'host' -> host name (localhost by default; usually fine)

fejn’s picture

For info on documentation conventions, see http://drupal.org/node/1354
Code samples section