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.

Use:
Windows 7
Wamp3.2.0
PHP 5.6
Yii2

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
Solution
Moved to Open Server all works out of the box)

Find more questions by tags Yii