Using code generators with Gii

I am very new to Yii and would like to learn it because I think it is a very powerful program.

This the screen I get to when working with Yii framework.

Welcome to Yii Code Generator!

You may use the following generators to quickly build up your Yii application:

Controller Generator

Crud Generator

Form Generator

Model Generator

Module Generator

When I choose to use crud or Model I get the following error


CDbConnection failed to open the DB connection: SQLSTATE[28000] [1045] Access denied for user ‘root’@‘localhost’ (using password: YES)


What configurations Am I supposed to make to get past this problem.


You need to create a database first, then use the Gii generator.

Check the settings in protected/config/main.php :)

Check out the blog tutorial: