Quote:
Originally Posted by Zachariah
Replace with:
PHP Code:
//***** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$dblogins = array();
$dblogins['1']['user'] = 'user1';
$dblogins['2']['user'] = 'user2';
$dblogins['3']['user'] = 'user3';
$dblogins['4']['user'] = 'user4';
$dblogins['5']['user'] = 'user5';
$dblogins['6']['user'] = 'user6';
$dblogins['7']['user'] = 'user7';
srand((float) microtime() * 10000000);
$dbloginid = array_rand($dblogins);
while ($dblogins[$dbloginid]['user'] == '')
{
$dbloginid = array_rand($dblogins);
}
$config['MasterServer']['username'] = $dblogins[$dbloginid]['user'];
unset($dblogins, $dbloginid);
$config['MasterServer']['password'] = 'password';
1) Make sure and replace user1, user2, user3, user4, user5, user6, user7 with the correct user names made for the database.
2) Also replace password with the correct password.
|
This isn't working for some reason... where does the database name
'username' get inserted or replaced, as in the original instructions?
My Database: $config['Database']['dbtype'] = 'mysqli';