Kohana でデータベースに接続する設定をする

Kohana のドキュメントには、

To configure the database there should be a file database.php in your application/config directory. If it isn't there you should copy it from the system/config directory.
データベースの接続を設定するには、application/config ディレクトリにある database.php で行うべきである。もし、同ディレクトリに存在しない場合は、system/config ディレクトリからコピーをする必要がある。
Database Configuration

と記載されているので、同ファイルを system/config から database.php をコピーして、application/config に保存する。
保存をしたら、下記の設定内容を修正する。

$config['default'] = array
(
	'benchmark'     => TRUE,
	'persistent'    => FALSE,
	'connection'    => 'mysql://myname:mypassword@localhost/kohana',
	'character_set' => 'utf8',
	'table_prefix'  => '',
	'object'        => TRUE,
	'cache'         => FALSE
);

'benchmark' や 'persistent'、'cache' は開発から運用に移行したら、見直すべき。
また、'object' は好みの問題があるので、それぞれの設定を行うべきだろう。