A Valid Database Connection Is Required To Run This Generator

I have made a database named Program then I have change my config\main like this


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

		'emulatePrepare' => true,

		'username' => 'root',

		'password' => '',

		'charset' => 'utf8',


but when I start the model Generator it’s give me “A valid database connection is required to run this generator”

What’s happend ? Help Please…

Case sensitivity?

If database is called "Program", name it Program in your settings.