I am trying to remove revisions from each entity type which has the revision feature via drush command. The amount of entities are quite a lot: around 10K nodes, 2k paragraphs.
On localhost everything is fine. But in the cloud the drush_print($log) successfully runs and the following error appears:
[warning] PDO::beginTransaction(): MySQL server has gone away Connection.php:1165 [warning] PDO::beginTransaction(): Error reading result set's header Connection.php:1165 In Connection.php line 1165: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
The two environments are close to identical. Any suggestions where could I start to investigate?