-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drush sql:sync query failed. SQLCommands.php (missing application/gzip mime type) #4319
Comments
If I extracted the .gz manually it is working.
I assume the problem is the extraction of .sql.gz file |
In FsUtils.php line 93, it does not have Now is working fine |
I am sorry @weitzman but the same is happening for drush 8.3.2 in vendor/drush/drush/includes/drush.inc line 975 'application/gzip' is missing
|
I had the same error "Query failed" using drush sql-sync. Finally I found a solution. Make sure your database user privileges include (In addition to SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, INDEX, DROP) |
I know that Drush 9.x is now unsupported, but this also affects Drush 9.7.2 - see line 352 in drush.inc. For one site, I'm in the unlucky client-mandated position of running production on php 7.0.x (thus drush 9.7.x) and dev on php 7.4. Misery. |
I'm on drush 9.7.2 as well and am facing the same issue: manually adding 'application/gzip', to the supported array in the drush.inc file in vendor/drush/drush/includes/drush.inc fixes the issue. (line 352) |
I can confirm this bug on drush 9.7.2 |
I have same issue with the drush version 9.7.2 and the PHP version is 7.4, but if the PHP version is 7.3 then it works correctly. I'm a little confused about why this issue is closed when the drush 9.7.2(also 9.7.3) does not include the fix code(I mean include the application/gzip) |
Drush 9 is no longer supported. See https://www.drush.org/latest/install/#drupal-compatibility |
There's https://drupal.stackexchange.com/a/307885/15055 which contains a patch to fix this issue. |
I have an issue trying to use "drush sql:sync". The strange thing is, it is working from my-local to live-environment, but not the other way around. Whereas my-local is Arch Linux, my live-environment is CentOS, but both have the same Drupal and Drush version:
my-local:
PHP 7.4.1
live-environment:
PHP 7.1.33
Error with debug and verbose
The text was updated successfully, but these errors were encountered: