I have installed Drupal, and Drush with composer require drush/drush:9.7.2.

 $ vendor/bin/drush status
 Drupal version : 8.8.2
 Site URI       : http://recommended-project.dd:8083
 PHP binary     : C:\Program Files (x86)\DevDesktop\php7_1_x64\php.exe
 PHP config     : C:\Program Files (x86)\DevDesktop\php7_1_x64\php.ini
 PHP OS         : WINNT
 Drush script   : C:\data\recommended-project\vendor\drush\drush\drush
 Drush version  : 9.7.2
 Drush temp     : C:\Users\UZYTKO~1\AppData\Local\Temp
 Drush configs  : C:/data/recommended-project/vendor/drush/drush/drush.yml
 Drupal root    : C:\data\recommended-project/web
 Site path      : sites/recommended-project.dd

I can't clear the cache (vendor/bin/drush cr) due to missing database connection.

The specified database connection is not defined: default

I presume this message is about settings.php, but the database connection is saved under C:\Users[username].acquia\DevDesktop\DrupalSettings.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.