【发布时间】:2011-09-25 09:00:21
【问题描述】:
我正在努力寻找有关如何在 Kohana 3.2 中配置 SQLite 的任何信息。我主要需要知道:
我应该将主机名、数据库、用户名和密码设置为什么(使用默认用户且无密码)?
另外,如何设置 SQLite 数据库文件的路径?
“类型”应该是什么?我尝试了“sqlite”,但出现错误
Class 'Database_Sqlite' not found。
这是我当前的配置选项:
'exportedDatabase' => array
(
'type' => 'sqlite',
'connection' => array(
/**
* The following options are available for MySQL:
*
* string hostname server hostname, or socket
* string database database name
* string username database username
* string password database password
* boolean persistent use persistent connections?
*
* Ports and sockets may be appended to the hostname.
*/
'hostname' => $hostname,
'database' => $database,
'username' => $username,
'password' => $password,
'persistent' => FALSE,
),
'table_prefix' => '',
'charset' => 'utf8',
'caching' => FALSE,
'profiling' => TRUE,
),
【问题讨论】:
标签: sql sqlite configuration kohana kohana-3