Answer the question
In order to leave comments, you need to log in
Error during migrations in yii2?
Tell me where yii2advanced comes from, if I specified a different connection in the database.
Here is the code of their db config file in common. Where does yii2advanced actually come from.
<?php
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=yii2_advert',
'username' => 'root',
'password' => ''
];
Answer the question
In order to leave comments, you need to log in
In advance, each application has its own configs + for each config there is a local config that interrupts it.
In your case, your connection may interrupt the local config main-local.php
---
For the future, you can use the global search in your ide along the line: dbname=yii2advanced
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question