./yii migrate --interactive=0 --migrationPath=@fecshop/migrations/mysqldb
Yii Migration Tool (based on Yii v2.0.15.1)
Exception 'yii\db\Exception' with message 'SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected
The SQL being executed was: SHOW FULL COLUMNS FROM `migration`'
in /opt/nginx/html/fecshop/vendor/yiisoft/yii2/db/Schema.php:664
Error Info:
Array
(
[0] => 3D000
[1] => 1046
[2] => No database selected
)
以上是报错内容,我的配置文件是:
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=192.168.5.219;port:3308;dbname=fecshop_test',
'username' => 'gouuse3',
'password' => 'gouuse3',
'charset' => 'utf8',
],