Files
yii/framework/cli/views/webapp/protected/config/database.php
UA2004 52d427a5fa Database settings moved to separate file.
main.php and console.php just include it.

fixes #3489, close #3490
2014-08-15 01:28:48 +02:00

14 lines
370 B
PHP

<?php
// This is the database connection configuration.
return array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
// uncomment the following lines to use a MySQL database
/*
'connectionString' => 'mysql:host=localhost;dbname=testdrive',
'emulatePrepare' => true,
'username' => 'root',
'password' => '',
'charset' => 'utf8',
*/
);