N
N
ngc7892016-03-13 12:12:19
PHP
ngc789, 2016-03-13 12:12:19

Error during migrations in yii2?

Tell me where yii2advanced comes from, if I specified a different connection in the database.
130b970bdce44ae19dc2f9a8ba2411d2.png
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

1 answer(s)
N
nepster-web, 2016-03-13
@nepster-web

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 question

Ask a Question

731 491 924 answers to any question