Property "CDbConnection.db" is not defined.

My database.php


<?php


// This is the database connection configuration.

return array(

	'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/yiinigo.db',

	// uncomment the following lines to use a MySQL database

	

	'db'=>array(

	'connectionString' => 'mysql:host=localhost; dbname=yiinigo',

	'emulatePrepare' => true,

	'username' => 'root',

	'password' => '',

	'charset' => 'utf8',

	'enableParamLogging'=> true,

	'schemaCachingDuration' => 3600,

	'class'=>'CDbConnection',

),

);

but it’s keep showing Property “CDbConnection.db” is not defined. In my XAMPP

Can anyone help me figure where is the problem?

You’re trying to configure a configuration within the configuration - doesn’t really make sense. Try something like this:




<?php


// This is the database connection configuration.

return array(

        'connectionString' => 'mysql:host=localhost; dbname=yiinigo',

        'emulatePrepare' => true,

        'username' => 'root',

        'password' => '',

        'charset' => 'utf8',

        'enableParamLogging'=> true,

        'schemaCachingDuration' => 3600,

        'class'=>'CDbConnection',

);



[SOLVED]

Well thanks a lots Patrick Jones now it already works