2010-11-03, 04:57 AM
I was trying to use the information providere here to setup 2 database servers (both read and write) but I cannot get it to work. It looks like it mixes and matches the information (error connecting userA to serverB, userA to serverB without a password, userB to serverA, etc...). Any assistance would be great.
Ok, I got it to work... sorta. It will read and write from both servers but it will not write to both databases at the same time like it said on that page. Is this no longer supported?
Ok, I got it to work... sorta. It will read and write from both servers but it will not write to both databases at the same time like it said on that page. Is this no longer supported?
$config['database']['type'] = 'mysql';
$config['database']['database'] = 'database';
$config['database']['table_prefix'] = 'mybb_';
$config['database']['read'][0]['hostname'] = 'localhost';
$config['database']['read'][0]['username'] = 'username';
$config['database']['read'][0]['password'] = 'password';
$config['database']['type'] = 'mysql';
$config['database']['database'] = 'database';
$config['database']['table_prefix'] = 'mybb_';
$config['database']['read'][1]['hostname'] = '111.111.111.111';
$config['database']['read'][1]['username'] = 'username';
$config['database']['read'][1]['password'] = 'password';
$config['database']['type'] = 'mysql';
$config['database']['database'] = 'database';
$config['database']['table_prefix'] = 'mybb_';
$config['database']['write'][0]['hostname'] = 'localhost';
$config['database']['write'][0]['username'] = 'username';
$config['database']['write'][0]['password'] = 'password';
$config['database']['type'] = 'mysql';
$config['database']['database'] = 'database';
$config['database']['table_prefix'] = 'mybb_';
$config['database']['write'][1]['hostname'] = '111.111.111.111';
$config['database']['write'][1]['username'] = 'username';
$config['database']['write'][1]['password'] = 'password';