Skip to content

Instantly share code, notes, and snippets.

@efpapado
Created January 12, 2022 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save efpapado/ea514f5142f0b1d445c5e9acdfb7ddd2 to your computer and use it in GitHub Desktop.
Save efpapado/ea514f5142f0b1d445c5e9acdfb7ddd2 to your computer and use it in GitHub Desktop.
Drush: disable column statistics - 10.3.6
diff --git a/src/Sql/SqlMysql.php b/src/Sql/SqlMysql.php
index 796182447..f42bddee6 100644
--- a/src/Sql/SqlMysql.php
+++ b/src/Sql/SqlMysql.php
@@ -24,6 +24,8 @@ class SqlMysql extends SqlBase
// EMPTY password is not the same as NO password, and is valid.
$contents = <<<EOT
#This file was written by Drush's Sqlmysql.php.
+[mysqldump]
+column-statistics=0
[client]
user="{$dbSpec['username']}"
password="{$dbSpec['password']}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment