Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

226
Views
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 answers
Answer question

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 Report

0

Try with this -

php -dmemory_limit=6G bin/magento setup:upgrade
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!