updated database connecting docs
This commit is contained in:
parent
a300634b2a
commit
7dabc66260
@ -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…
Reference in New Issue
Block a user