Doctrine架构更新prod环境中的错误

时间:2015-12-12 23:35:46

标签: php mysql symfony doctrine

运行命令doctrine时出现错误:schema:更新到我的主机上的控制台。然后,当我尝试访问我的数据库时,我有一个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.

1 个答案:

答案 0 :(得分:1)

我解决了这个问题。它足以清除缓存。