CDbConnection failed to open the DB
Posted 22 July 2010 - 01:09 PM
When trying to use Yiic command line shell to create the model (model *) it outputs the following error:
exception 'CDbException' with message 'CDbConnection failed to open the DB'
I can not figure out what's happening, not only mysql pdo is there, I can do the following in my index.php:
$db = Yii::app()->db;
$command=$db->createCommand('select * from Alu');
$rows = $command->queryAll();
and it works just fine
Don't know what to try
Posted 22 July 2010 - 01:12 PM
PHP version Passed Yii Framework PHP 5.1.0 or higher is required.
$_SERVER variable Passed Yii Framework
Reflection extension Passed Yii Framework
PCRE extension Passed Yii Framework
SPL extension Passed Yii Framework
DOM extension Passed CWsdlGenerator
PDO extension Passed All DB-related classes
PDO SQLite extension Warning All DB-related classes This is required if you are using SQLite database.
PDO MySQL extension Passed All DB-related classes This is required if you are using MySQL database.
PDO PostgreSQL extension Warning All DB-related classes This is required if you are using PostgreSQL database.
Memcache extension Warning CMemCache
APC extension Warning CApcCache
Mcrypt extension Warning CSecurityManager This is required by encrypt and decrypt methods.
SOAP extension Warning CWebService, CWebServiceAction
GD extension Passed CCaptchaAction
sorry for the output, it's a little kaos, but all is there
Posted 22 July 2010 - 01:15 PM
Hope you understand!
A way to know if they are different is running phpinfo() both from a web browser and from command line
The problem is communication! Excess of communication!