Table of Contents
Databases with Cake
Firebird / Interbase
var $default = array('driver' => 'adodb', 'connect' => 'ibase', 'host' => 'localhost:C:/path_to_db/db_name.FDB', 'login' => 'sysdba', 'password' => 'masterkey', 'database' => '', 'prefix' => '');
You should download ADOdb (http://phplens.com/adodb/) and copy it to directory app/vendors. Then change the file cake/libs/model/dbo/dbo_adodb.php - instead of “vendor(’adodb’.DS.’adodb.inc.php’);” there should be “vendor(’adodb’.DS.’adodb.inc’);”.
Enjoy!
Postgresql
To use a postgresql database the driver should be ‘postgres’
var $default = array('driver' => 'postgres', 'connect' => 'pg_connect', 'host' => 'localhost', 'login' => 'username', 'password' => '*********', 'database' => 'caketest', 'prefix' => '');
ADODB + Access
From: “ivanp” (12 Jan 2006 15:19:15 )
WOW!!!! I did’t!
Here is the config in anyone needs it in the future:
var $default = array('driver' => 'adodb-access', 'connect' => '', 'host' => 'Driver={Microsoft Access Driver(*.mdb)};Dbq=C:\www\jasol\access\jasol2000.mdb;Uid=Admin;Pwd=;', 'login' => 'Admin', 'password' => '', 'database' => 'jasol2000.mdb' );
| driver: | type of conection i needed |
| connect: | [empty] not permanent |
| host: | [dsn][driver_type; path_to_file_or_db;Uid=user;Pwd=password;] |
| login: | [user] i don’t really know if it’s being used |
| password | [password]same as login, don’t know if used |
| database | [db_or_file_name]same as login, don’t know if used |
...and then you get this pretty message:
Your database configuration file is present. Cake is able to connect to the database.