Doctrine \ DBAL \ DBALException

问题描述 投票:0回答:1

我正在开发一个Symfony项目,并在我的mac上使用mysql本地数据库,直到今天,当我想使用命令更新数据库表时,它都运行良好。

./bin/console doctrine:schema:update --force

并且它给了我这个错误,有人可以帮助我找出正在发生的事情。

[Doctrine\DBAL\DBALException]                                                                                                                                              
  An exception occurred while executing 'SELECT TABLE_NAME AS `Table`, NON_UNIQUE AS Non_Unique, INDEX_NAME AS Key_name, SEQ_IN_INDEX AS Seq_in_index, COLUMN_NAME AS Colum  
  n_Name, COLLATION AS Collation, CARDINALITY AS Cardinality, SUB_PART AS Sub_Part, PACKED AS Packed, NULLABLE AS `Null`, INDEX_TYPE AS Index_Type, COMMENT AS Comment FROM  
   information_schema.STATISTICS WHERE TABLE_NAME = 'collectionTopping' AND TABLE_SCHEMA = 'foodSystem' ORDER BY SEQ_IN_INDEX ASC':                                          
  Warning: PDO::query(): MySQL server has gone away                                                                                                                          


 [Symfony\Component\Debug\Exception\ContextErrorException]  
  Warning: PDO::query(): MySQL server has gone away  

我正在开发一个Symfony项目,并在Mac上使用mysql本地数据库,直到今天,当我想使用命令./bin/console ...

mysql symfony doctrine
1个回答
0
投票
MySQL工作台不喜欢

, COLUMN_NAME AS Colum n_Name,

© www.soinside.com 2019 - 2024. All rights reserved.