Php 产品环境中的条令架构更新错误

Php 产品环境中的条令架构更新错误,php,mysql,symfony,doctrine,Php,Mysql,Symfony,Doctrine,在主机上运行命令doctor:schema:update到我的控制台时出错。然后,当我试图访问我的数据库时,我出现了一个MySQL错误 # This file is auto-generated during the composer install parameters: database_host: trendspopdmaster.mysql.db database_port: null database_name: MyDbName databas

在主机上运行命令doctor:schema:update到我的控制台时出错。然后,当我试图访问我的数据库时,我出现了一个MySQL错误

    # This file is auto-generated during the composer install
parameters:
    database_host: trendspopdmaster.mysql.db
    database_port: null
    database_name: MyDbName
    database_user: MyDbLogin
    database_password: *****
    mailer_transport: smtp
    mailer_host: 127.0.0.1
    mailer_user: null
    mailer_password: null
    secret: 90146e6046fs01d1d529c739f1202f94fc74defd
我想访问数据库时的错误:

An exception occured in driver: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/run\/mysqld\/mysqld.sock' (2)
运行命令时的错误:

ATTENTION: This operation should not be executed in a production environment.
           Use the incremental update to detect changes during development and use
           the SQL DDL provided to manually update your database in production.

我解决了这个问题。清除缓存就足够了。

你有权访问
my.cnf
文件吗?没有,我在OVH,有共享的报价。你必须跟你的主人谈谈。@xurshid29谢谢。罚单仍在等待中。