Greetings to all. There is a advanced application. In frontend and backend, the settings for the database are the same and are stored in /common/config/main.php and /common/config/main.local.php. In /frontend/config/main.php and /backend/config/main.php (main and main-local) there are no base settings.
Locally everything works. But when I copied to the server, when I try to access the database, backend refuses to work and writes an error (frontend works fine):
Database Exception - yii \ db \ Exception
SQLSTATE [HY000] [2002] No such file or directory sed Caused by: PDOException
SQLSTATE [HY000] [2002] No such file or directory
in /homepages/9/d600525307/htdocs/website/vendor/yiisoft/yii2/db/Connection.php at line 600
What is it about? The only point is that the table to which the frontend refers to with an underscore looks like: name_name, respectively, the ActiveRecord model for working with it is called the NameName. I tried to remove the underscore in the name of the table - all the same. I rummaged in Google many forums and not our answer to the question. What could this be?