Skip to content

Commit

Permalink
Clarified documentation for configuring the database settings. See Gi…
Browse files Browse the repository at this point in the history
…tHub Issue #3801.
  • Loading branch information
campbell-m committed Jan 8, 2025
1 parent 637b635 commit 93ea45a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,11 @@ Then define your database connection parameters. Set the values for:
$db_login = The database login username
$db_password = The database login password for the above login username

If you are using cPanel on your web server, make sure you include the prefix,
typically 8 characters followed by an underscore, in your database name and
database username. For example $db_database = "abcdefgh_mrbs". (Note: this
prefix is not the same as the table prefix below.)

If the database server and web server are the same machine, use
$db_host="localhost". Or, with PostgreSQL only, you can use $db_host="" to
use Unix Domain Sockets to connect to the database server on the same machine.
Expand Down
6 changes: 6 additions & 0 deletions web/config.inc.php-sample
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ require_once 'lib/autoload.inc';
/*******************
* Database settings
******************/

// If you are using cPanel on your web server, make sure you include the prefix,
// typically 8 characters followed by an underscore, in your database name and
// database username. For example $db_database = "abcdefgh_mrbs". (Note: this
// prefix is not the same as the table prefix below.)

// Which database system: "pgsql"=PostgreSQL, "mysql"=MySQL
$dbsys = "mysql";
// Hostname of database server. For pgsql, can use "" instead of localhost
Expand Down

0 comments on commit 93ea45a

Please sign in to comment.