Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Connecting Additional Databases Rate Topic   - - - - -

 
  • richiej
  • Member
  • Members
  • Join Date: 12-Feb 13
  • 23 posts

Posted 25 May 2014 - 08:31 PM #1

I am trying to connect to an additional database, but not having much luck,

if have tried

$params = array(
	 'table_prefix' => 'pcd_',
	 'dbc_name' => 'pcd'	
);
$db['name'] = 'root';
$db['user'] = 'user';

db_initiate('localhost', $db['user'], 'password', $db['name'], $params);
db_connect_to($params, $db['name']);


but all i get is a blank page, i have turned error reporting on an it gives no errors.

 
  • richiej
  • Member
  • Members
  • Join Date: 12-Feb 13
  • 23 posts

Posted 25 May 2014 - 08:50 PM #2

I am trying to connect to an additional database, but not having much luck,

if have tried

$params = array(
	 'table_prefix' => 'pcd_',
	 'dbc_name' => 'pcd'	
);
$db['name'] = 'root';
$db['user'] = 'user';

db_initiate('localhost', $db['user'], 'password', $db['name'], $params);
db_connect_to($params, $db['name']);


but all i get is a blank page, i have turned error reporting on an it gives no errors.


managed to fix the problem by skipping errors

Registry::set('runtime.database.skip_errors', true);