CakePHPでPostgreSQLを使う設定

このエントリーをはてなブックマークに追加
はてなブックマーク - CakePHPでPostgreSQLを使う設定
Share on Facebook
Post to Google Buzz
Bookmark this on Yahoo Bookmark
Bookmark this on Livedoor Clip
Share on FriendFeed

チュ−トリアルではMySQLの設定の仕方しか載っていなかったので、PostgreSQL用の設定を。

var $default = array('driver' => 'postgres',
'connect' => 'pg_connect',
'host' => 'localhost',
'port' => '5432',
'login' => '(ユーザ名)',
'password' => '(パスワード)',
'database' => '(データベース名)',
'prefix' => ');

pearの用にdriverをpgsqlと書いても動かないので注意が必要。

This entry was posted in cakePHP. Bookmark the permalink.