php bin / console doctrine:schema:update --force not working

时间:2018-01-24 09:42:22

标签: doctrine-orm fosuserbundle symfony-3.4

我收到此错误: 在AbstractMySQLDriver.php第115行:

An exception occured in driver: SQLSTATE[HY000] [2006] MySQL server has gone away

在PDOConnection.php第47行:

SQLSTATE[HY000] [2006] MySQL server has gone away

在PDOConnection.php第43行:

SQLSTATE[HY000] [2006] MySQL server has gone away

在PDOConnection.php第43行:

Warning: PDO::__construct(): MySQL server has gone away


doctrine:schema:update [--complete] [--dump-sql] [-f|--force] [--em [EM]] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>

1 个答案:

答案 0 :(得分:0)

检查parameters.yml中的连接参数

database_port:port database_name:table database_user:root database_password:******