migrations支持pgsql吗? [ 新手入门 ]
Exception 'yii\db\Exception' with message 'could not find driver'
in /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/db/Connection.php:534
Stack trace:
#0 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/db/Connection.php(836): yii\db\Connection->open()
#1 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/db/Connection.php(823): yii\db\Connection->getMasterPdo()
#2 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/db/Schema.php(444): yii\db\Connection->getSlavePdo()
#3 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/db/Connection.php(732): yii\db\Schema->quoteValue('api_migration')
#4 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/db/pgsql/Schema.php(335): yii\db\Connection->quoteValue('api_migration')
#5 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/db/pgsql/Schema.php(160): yii\db\pgsql\Schema->findColumns(Object(yii\db\TableSchema))
#6 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/db/Schema.php(146): yii\db\pgsql\Schema->loadTableSchema('migration.api_m...')
#7 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/console/controllers/MigrateController.php(121): yii\db\Schema->getTableSchema('migration.api_m...', true)
#8 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/console/controllers/BaseMigrateController.php(610): yii\console\controllers\MigrateController->getMigrationHistory(NULL)
#9 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/console/controllers/BaseMigrateController.php(102): yii\console\controllers\BaseMigrateController->getNewMigrations()
#10 [internal function]: yii\console\controllers\BaseMigrateController->actionUp(0)
#11 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/base/InlineAction.php(55): call_user_func_array(Array, Array)
#12 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/base/Controller.php(151): yii\base\InlineAction->runWithParams(Array)
#13 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/console/Controller.php(91): yii\base\Controller->runAction('', Array)
#14 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/base/Module.php(455): yii\console\Controller->runAction('', Array)
#15 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/console/Application.php(161): yii\base\Module->runAction('migrate', Array)
#16 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/console/Application.php(137): yii\console\Application->runAction('migrate', Array)
#17 /Applications/MAMP/htdocs/doordu/vendor/yiisoft/yii2/base/Application.php(375): yii\console\Application->handleRequest(Object(yii\console\Request))
#18 /Applications/MAMP/htdocs/doordu/api/yii(29): yii\base\Application->run()
#19 {main}
报了以上的错误,不清楚是哪里出了问题,求助
共 2 条回复
布吉岛的事
注册时间:2015-03-25
最后登录:2016-05-31
在线时长:3小时24分
最后登录:2016-05-31
在线时长:3小时24分
- 粉丝1
- 金钱40
- 威望0
- 积分70