Yiic Shell Failure

When trying to run the yiic shell while in the protected directory of the trackstar app as suggested in the book Yii and PHP, I get the following error:

Y:\trackstar\protected>yiic shell

exception ‘CException’ with message 'Property “CConsoleApplication.db” is read o

nly.’ in Y:\trackstar\framework\base\CComponent.php:170

Stack trace:

#0 Y:\trackstar\framework\base\CModule.php(513): CComponent->__set(‘db’, Array)

#1 Y:\trackstar\framework\base\CApplication.php(161): CModule->configure(Array)

#2 Y:\trackstar\framework\YiiBase.php(125): CApplication->__construct('Y:\tracks

tar\pr…’)

#3 Y:\trackstar\framework\YiiBase.php(113): YiiBase::createApplication('CConsole

Applica…’, ‘Y:\trackstar\pr…’)

#4 Y:\trackstar\framework\yiic.php(23): YiiBase::createConsoleApplication('Y:\tr

ackstar\pr…’)

#5 Y:\trackstar\protected\yiic.php(7): require_once(‘Y:\trackstar\fr…’)

#6 {main}

check for your db configuration.

  1. Your database user permission

  2. Your DB info config in console.php

Check permission of your project dir and yii framework dir ::)