Answer the question
In order to leave comments, you need to log in
Yii2 PDOException who knows how to deal with this?
Good people, tell me how to overcome PDOException, so I'm trying to go to " localhost/backend/web " and it shows me something like this "SQLSTATE[HY000] [1049] Unknown database 'yii2advanced'"! I myself see the name of this database for the first time! a completely different database is registered in the common/config/db.php directory, and it is friends with frontendom, but for some reason it doesn’t want to be with backendom! Guess who's been through this before?
Answer the question
In order to leave comments, you need to log in
it would be so simple, it would probably not be interesting, but why then does the frontend work with the same database that is registered in common/config/db.php and the backend should also work with it, the rule is the same for everyone
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question