updated database connecting docs
This commit is contained in:
parent
a300634b2a
commit
7dabc66260
1 changed files with 7 additions and 3 deletions
|
@ -1,10 +1,14 @@
|
|||
<?php
|
||||
|
||||
// using PDO dsn for connecting sqlite memory table
|
||||
// using PDO like dsn for connecting sqlite memory table
|
||||
|
||||
//$dbh = Doctrine_DB::getConnection('sqlite::memory:');
|
||||
$dbh = Doctrine_DB::getConnection('sqlite::memory:');
|
||||
|
||||
// using PDO like dsn for connecting pgsql database
|
||||
|
||||
$dbh = Doctrine_DB::getConnection('pgsql://root:password@localhost/mydb');
|
||||
|
||||
// using PEAR like dsn for connecting mysql database
|
||||
|
||||
//$dbh = Doctrine_DB::getConnection('mysql://root:password@localhost/test');
|
||||
$dbh = Doctrine_DB::getConnection('mysql://root:password@localhost/test');
|
||||
?>
|
||||
|
|
Loading…
Add table
Reference in a new issue