Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Issue: SQL Server implementation of _drush_sql_get_credentials is using "server' instead of "host" so Drush does not find SQL Server
Workaround: Using SQL Server configuration tool, create and Alias of ".\SQLEXPRESS" to "localhost:
Fix: In Drush\commands\sql\sql.drush.inc Line ~864
Replace
$host = empty($db_spec['server']) ? '.\SQLEXPRESS' : $db_spec['server'];
with
$host = empty($db_spec['host']) ? '.\SQLEXPRESS' : $db_spec['host'];
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commented