You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while your enviroment is build by vagrant virtual machine ,the yii2 migrate will be not work properly,but when you ssh to virtual machine it will be work,the Exception is:
D:\www\data\game4039>yii migrate
Warning: Invalid argument supplied for foreach() in D:\www\data\game4039\vendor\yiisoft\y
ii2\helpers\BaseArrayHelper.php on line 121
Call Stack:
0.0005 127104 1. {main}() D:\www\data\game4039\yii:0
0.0095 912056 2. yii\helpers\BaseArrayHelper::merge() D:\www\data\game4039\yii:
24
Yii Migration Tool (based on Yii v2.0.7-dev)
Exception 'yii\db\Exception' with message 'SQLSTATE[HY000] [2002] 由于目标计算机积极拒绝
,无法连接。
'
in D:\www\data\game4039\vendor\yiisoft\yii2\db\Connection.php:538
Stack trace:
#0 D:\www\data\game4039\vendor\yiisoft\yii2\db\Connection.php(848): yii\db\Connection->op
while your enviroment is build by vagrant virtual machine ,the yii2 migrate will be not work properly,but when you ssh to virtual machine it will be work,the Exception is:
D:\www\data\game4039>yii migrate
Warning: Invalid argument supplied for foreach() in D:\www\data\game4039\vendor\yiisoft\y
ii2\helpers\BaseArrayHelper.php on line 121
Call Stack:
0.0005 127104 1. {main}() D:\www\data\game4039\yii:0
0.0095 912056 2. yii\helpers\BaseArrayHelper::merge() D:\www\data\game4039\yii:
24
Yii Migration Tool (based on Yii v2.0.7-dev)
Exception 'yii\db\Exception' with message 'SQLSTATE[HY000] [2002] 由于目标计算机积极拒绝
,无法连接。
'
in D:\www\data\game4039\vendor\yiisoft\yii2\db\Connection.php:538
Stack trace:
#0 D:\www\data\game4039\vendor\yiisoft\yii2\db\Connection.php(848): yii\db\Connection->op
en()
#1 D:\www\data\game4039\vendor\yiisoft\yii2\db\Connection.php(835): yii\db\Connection->ge
tMasterPdo()
#2 D:\www\data\game4039\vendor\yiisoft\yii2\db\Command.php(218): yii\db\Connection->getSl
avePdo()
#3 D:\www\data\game4039\vendor\yiisoft\yii2\db\Command.php(833): yii\db\Command->prepare(
true)
#4 D:\www\data\game4039\vendor\yiisoft\yii2\db\Command.php(361): yii\db\Command->queryInt
ernal('fetchAll', NULL)
#5 D:\www\data\game4039\vendor\yiisoft\yii2\db\mysql\Schema.php(198): yii\db\Command->que
ryAll()
#6 D:\www\data\game4039\vendor\yiisoft\yii2\db\mysql\Schema.php(97): yii\db\mysql\Schema-
The text was updated successfully, but these errors were encountered: