如何在鹦鹉OS上设置Yii2 Migrate?

时间:2019-10-30 10:12:25

标签: php

我尝试在Parrot OS上设置Yii2 Migrate并收到此错误:

─[root@parrot]─[/opt/lampp/htdocs/advanced]
└──╼ #php yii migrate
Yii Migration Tool (based on Yii v2.0.24)

Exception 'yii\db\Exception' with message 'SQLSTATE[HY000] [2002] No such file or directory'

in /opt/lampp/htdocs/advanced/vendor/yiisoft/yii2/db/Connection.php:632

Stack trace:
#0 /opt/lampp/htdocs/advanced/vendor/yiisoft/yii2/db/Connection.php(1012): yii\db\Connection->open()
#1 /opt/lampp/htdocs/advanced/vendor/yiisoft/yii2/db/Connection.php(999): yii\db\Connection->getMasterPdo()
#2 /opt/lampp/htdocs/advanced/vendor/yiisoft/yii2/db/Command.php(253): yii\db\Connection->getSlavePdo()
#3 /opt/lampp/htdocs/advanced/vendor/yiisoft/yii2/db/Command.php(1153): yii\db\Command->prepare(true)
#4 /opt/lampp/htdocs/advanced/vendor/yiisoft/yii2/db/Command.php(399): yii\db\Command->queryInternal('fetchAll', NULL)
#5 /opt/lampp/htdocs/advanced/vendor/yiisoft/yii2/db/mysql/Schema.php(319): yii\db\Command->queryAll()

0 个答案:

没有答案