Skip to content

Commit 143f786

Browse files
authored
Merge pull request #12 from VanOns/bugfix/disable-mysql-column-statistics
fix: disable mysql column statistics
2 parents 6a525c2 + cf3da85 commit 143f786

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Commands/ImportEnvironmentCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,9 @@ protected function getDatabaseDumpClient(bool $local = false): MySql
325325
->setUserName($local ? DB::getConfig('username') : $this->getEnvironmentConfigValue('db_username'))
326326
->setPassword($local ? DB::getConfig('password') : $this->getEnvironmentConfigValue('db_password'))
327327
->setPort($port)
328-
->setDumpBinaryPath($this->getConfigValue('db_dump_binary_path', '/usr/bin'));
328+
->setDumpBinaryPath($this->getConfigValue('db_dump_binary_path', '/usr/bin'))
329+
// Disable column statistics to prevent issues with older MySQL or MariaDB versions.
330+
->addExtraOption('--column-statistics=0');
329331
}
330332

331333
/**

0 commit comments

Comments
 (0)