The problem with the dB connection: yii migrate exception uknown database for a given database. How to fix?

Trying to run advanced application yiiframework.
Run the command yii migrate from cmd.
Gives the error "Uknown database 'yii2a'". That is, does not see such a database, but it exists(created using phpMyAdmin).
Comrades who know, please tell me how to fix it and run the framework.

Windows 7
PHP 5.6

P. S( the name of the database was set common\config\main-local.php )
April 3rd 20 at 18:44
1 answer
April 3rd 20 at 18:46
Moved to Open Server all works out of the box)

Find more questions by tags Yii