Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

228
Visualizações
Mysql server gone away when running magento setup upgrade after code change

We are on magento 2.3 version.

After code change when we run setup:upgrade, our mysql server gets stuck. We noticed there are a lot of alter queries running on db during this. As our table size is large, the DB stuck with these alter queries. Does running setup:upgrade runs several alter queries on sales and quote related tables ? Can we exclude this queries from magento setup upgrade or any alternate to keep db healthy ?

Error:

Updating modules:
Schema creation/updates:
Warning: PDOStatement::execute(): MySQL server has gone away in /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php on line 228
command terminated with exit code 1
over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Got the solution, we are running magento os with MariaDB.

There was a compatibility issue with Mariadb, got fixed following below URL.

Had put the patch on magento for the fix.

So basically on every setup upgrade it was running numbers of alter queries even if there is no change in schema.

https://github.com/magento/magento2/issues/19597

over 4 years ago · Santiago Trujillo Relatório

0

Try with this -

php -dmemory_limit=6G bin/magento setup:upgrade
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda