Not positive, but you probably need to specify a complete path to the
test.db file.

Wayne

On 2/18/08, shotchen <[EMAIL PROTECTED]> wrote:
>
> my Environment is windowXp,php5.25,LightTPD-1.4.18-1-
> Win32,sqlite3.5.6;
>
> i made "The Cake Blog Tutorial"  example,but i get a error like this
>    "Warning (2): sqlite_popen() [function.sqlite-popen]: file is
> encrypted or is not a database [CORE\cake\libs\model\datasources\dbo
> \dbo_sqlite.php, line 94]"
> my database.php config like below:
> class DATABASE_CONFIG {
>        var $default = array(
>                'driver' => 'sqlite',
>                'connect' =>'sqlite_popen',
>                'persistent' => false,
>                'host' => 'localhost',
>                'port' => '',
>                'login' => '',
>                'password' => '',
>                'database' => 'test.db',
>                'schema' => '',
>                'prefix' => '',
>                'encoding' => ''
>        );
> }
> if i change the datebase to mysql ,it work well。
> my database.php's config like this:
> class DATABASE_CONFIG {
>        var $default = array(
>                'driver' => 'mysql',
>                'persistent' => false,
>                'host' => 'localhost',
>                'port' => '',
>                'login' => 'root',
>                'password' => 'test',
>                'database' => 'cakephp',
>                'schema' => '',
>                'prefix' => '',
>                'encoding' => ''
>        );
> }
> please tell me what is wrong with my config?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to