Skip to content

Instantly share code, notes, and snippets.

@peterjaap
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterjaap/577e274e77abb54dc5e3 to your computer and use it in GitHub Desktop.
Save peterjaap/577e274e77abb54dc5e3 to your computer and use it in GitHub Desktop.
Magento separate db connection
<?php
$db = new Zend_Db_Adapter_Pdo_Mysql(array(
'host'=> '127.0.0.1',
'username' => 'webuser',
'password' => 'xxxxxxxx',
'dbname'=> 'test',
'profiler' => true,
));
// $db->fetchCol, $db->fetchOne, $db->fetchPairs etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment