Hi,
Following the tutorial, I’ve reached the step to generate the model code. When I click on the Model Generator link in gii, I get the following error:
CDbCommand failed to execute the SQL statement: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected. The SQL statement executed was: SHOW TABLES
This is my db config on main.php:
'db'=>array(
'connectionString' => 'mysql:host=127.0.0.1;port:3306;dbname=test',
'emulatePrepare' => true,
'username' => 'root',
'password' => 'removed_password',
'charset' => 'utf8',
),
And this is my Yii requirement check result:
3030
I’ve searched this forum and others but have not been able to find anything to help me get pass this point.
Help!