WebERP doesn't currently support database table prefixes. It's one of several ongoing things I'm looking into.
However, a workaround you could do, is this:
in config.php alter $DBUser & $DBPassword to be an arrays, with the key being the database they belong to.
so,
Code:
$DBUser = array(
'weberp'=>'someuser',
'weberp2'=>'anotheruser');
$DBPassword = array(
'weberp'=>'somepass',
'weberp2'=>'anotherpass');
And in includes/ConnectDB_mysqli.inc (assuming you're using mysqli, which you should be)
change line 17 to
Code:
$db = mysqli_connect($host , $DBUser[$_SESSION['DatabaseName']], $DBPassword[$_SESSION['DatabaseName']],$_SESSION['DatabaseName'], $mysqlport);
We'll have to do a more comprehensive solution in the future but that should work in your case.