You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are running CiviCRM 4.6.33, Drupal 7.59, and Drush 8.1.17. Drupal & CIviCRM are running without issue, and all native Drush commands appear to be working as expected, including sql-dump. Where we are running into trouble is running an CiviCRM drush command the requires an sql connection, such as civicrm-sql-dump.
"/usr/local/bin/drush/commands/sql/sql.drush.inc" is not the correct location of this file and not sure how to fix this.
Have seen a similar post here: #2721 however the solution provided did not work for us. Tried setting host to "localhost" & "127.0.0.1" in settings file, and tried adding "--root=/path/to/webroot".
We were successfully using these commands in the past without issue, and continue to have no issue with the regular Drupal drush commands. Issue appears to have begun after updating to Drush 8.1.17, not sure what to try next.
Thanks!
The text was updated successfully, but these errors were encountered:
Unable to find a matching SQL Class is a bad error message. What Drush is trying to tell you here is that it could not find the sites $database details. It fails to error out here, though, and instead tries to find a driver for "" instead of "mysql".
Not sure why you'd be having trouble with getting $databases for your commands but not Drush core commands. In fact, you should already have $databases loaded if Drush is finding your commands at all. It could be that you are seeing a the symptom above for a similar but different problem.
If the problem is in fact caused by Drush, you could try checking out Drush via git, and use git bisect to find the commit that broke your environment.
We are running CiviCRM 4.6.33, Drupal 7.59, and Drush 8.1.17. Drupal & CIviCRM are running without issue, and all native Drush commands appear to be working as expected, including sql-dump. Where we are running into trouble is running an CiviCRM drush command the requires an sql connection, such as civicrm-sql-dump.
"/usr/local/bin/drush/commands/sql/sql.drush.inc" is not the correct location of this file and not sure how to fix this.
Have seen a similar post here: #2721 however the solution provided did not work for us. Tried setting host to "localhost" & "127.0.0.1" in settings file, and tried adding "--root=/path/to/webroot".
We were successfully using these commands in the past without issue, and continue to have no issue with the regular Drupal drush commands. Issue appears to have begun after updating to Drush 8.1.17, not sure what to try next.
Thanks!
The text was updated successfully, but these errors were encountered: