I am following this http://fossies.org/dox/yii-advanced-app-2.0.3/md_tests_README.html to setup Yii testing environment. I get the following error after executing the command
Yii migrate
I created my "yii2_advanced_tests" do I have to configure this somewhere in my app? I dont understand what I am missing.
C:\inetpub\wwwroot\jobmanager\tests\codeception\bin>yii migrate
Yii Migration Tool (based on Yii v2.0.3)
Exception 'yii\db\Exception' with message 'SQLSTATE[HY000] [2002] No connection
could be made because the target machine actively refused it.
'
in C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\db\Connection.php:534
Stack trace:
#0 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\db\Connection.php(836): yii
\db\Connection->open()
#1 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\db\Connection.php(823): yii
\db\Connection->getMasterPdo()
#2 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\db\Command.php(208): yii\db
\Connection->getSlavePdo()
#3 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\db\Command.php(816): yii\db
\Command->prepare(true)
#4 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\db\Command.php(350): yii\db
\Command->queryInternal('fetchAll', NULL)
#5 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\db\mysql\Schema.php(198): y
ii\db\Command->queryAll()
#6 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\db\mysql\Schema.php(97): yi
i\db\mysql\Schema->findColumns(Object(yii\db\TableSchema))
#7 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\db\Schema.php(140): yii\db\
mysql\Schema->loadTableSchema('migration')
#8 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\console\controllers\Migrate
Controller.php(121): yii\db\Schema->getTableSchema('{{%migration}}', true)
#9 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\console\controllers\BaseMig
rateController.php(610): yii\console\controllers\MigrateController->getMigration
History(NULL)
#10 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\console\controllers\BaseMi
grateController.php(102): yii\console\controllers\BaseMigrateController->getNewM
igrations()
#11 [internal function]: yii\console\controllers\BaseMigrateController->actionUp
(0)
#12 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\base\InlineAction.php(55):
call_user_func_array(Array, Array)
#13 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\base\Controller.php(151):
yii\base\InlineAction->runWithParams(Array)
#14 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\console\Controller.php(91)
: yii\base\Controller->runAction('', Array)
#15 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\base\Module.php(455): yii\
console\Controller->runAction('', Array)
#16 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\console\Application.php(16
1): yii\base\Module->runAction('migrate', Array)
#17 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\console\Application.php(13
7): yii\console\Application->runAction('migrate', Array)
#18 C:\inetpub\wwwroot\jobmanager\vendor\yiisoft\yii2\base\Application.php(375):
yii\console\Application->handleRequest(Object(yii\console\Request))
#19 C:\inetpub\wwwroot\jobmanager\tests\codeception\bin\yii(22): yii\base\Applic
ation->run()
#20 {main}