source of /config/database.php
Database connection settings.
Each array is a separate group, which can be connected to independently.
The standard connection used by Pdb is the 'default' group, but
the method Pdb::connect can be used to connect to other groups
Group Options:
connection Array of connection specific parameters:
type Only supported value is 'mysql'
host Hostname
user Username
pass Password
port If non-empty, specifies a non-standard port
database Database name
character_set Database character set <?php /* * Copyright (C) 2017 Karmabunny Pty Ltd. * * This file is a part of SproutCMS. * * SproutCMS is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, either * version 2 of the License, or (at your option) any later version. * * For more information, visit <http://getsproutcms.com>. */ /** * Database connection settings. * * Each array is a separate group, which can be connected to independently. * * The standard connection used by {@see Pdb} is the 'default' group, but * the method {@see Pdb::connect} can be used to connect to other groups * * Group Options: * connection Array of connection specific parameters: * type Only supported value is 'mysql' * host Hostname * user Username * pass Password * port If non-empty, specifies a non-standard port * database Database name * character_set Database character set **/ if (IN_PRODUCTION) { // Live server config $config['default'] = [ 'connection' => [ 'type' => 'mysql', 'user' => 'b9cc9cf9ed0bce', 'pass' => 'd7b19b3d', 'database' => 'heroku_11cb2d367015e0a', 'host' => 'us-cdbr-east-04.cleardb.com', 'port' => FALSE, ], 'character_set' => 'utf8', ]; // A unique random key for this site $config['server_key'] = 'QN1hco0gZfp9wl9A'; } else { // Test server config $config['default'] = [ 'connection' => [ 'type' => 'mysql', 'user' => 'harbor-and-sprout', 'pass' => 'password', 'database' => 'harbor_and-sprout', 'host' => 'localhost', 'port' => FALSE, ], 'character_set' => 'utf8', ]; // This key is not secure, so it must not be used in production environments $config['server_key'] = 'NOT SECURE'; }
|