• I can't use the GUI

  • I prefer not to install Drush in my current localhost Windows 10 environment

  • I tried the following which failed:

    • Adding $settings['rebuild_access'] = TRUE; to the end of /sites/default/settings.php and saving the file
    • Navigating in my web browser to localhost/example.com/core/rebuild.php, where I got the following error:

Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1044] Access denied for user 'example.com'@'localhost' to database 'example.com' in C:\xampp\htdocs\example.com\core\lib\Drupal\Core\Database\Driver\mysql\Connection.php:185 Stack trace: #0 C:\xampp\htdocs\example.com\core\lib\Drupal\Core\Database\Driver\mysql\Connection.php(185): PDO->__construct('mysql:host=loca...', 'example.com', 'PASSWORD', Array) #1 C:\xampp\htdocs\example.com\core\lib\Drupal\Core\Database\Database.php(380): Drupal\Core\Database\Driver\mysql\Connection::open(Array) #2 C:\xampp\htdocs\example.com\core\lib\Drupal\Core\Database\Database.php(169): Drupal\Core\Database\Database::openConnection('default', 'default') #3 [internal function]: Drupal\Core\Database\Database::getConnection('default') #4 C:\xampp\htdocs\example.com\core\lib\Drupal\Component\DependencyInjection\Container.php(258): call_user_func_array(Array, Array) #5 C:\xampp\htdocs\example.com\core\lib\Drupal\Component\DependencyInjection\Container.p in C:\xampp\htdocs\example.com\core\lib\Drupal\Core\Database\Driver\mysql\Connection.php on line 185


  • Windows 10 Home, 64-bit
  • XAMPP Version: 7.3.29:
    • PHP 7.3.29 , 7.4.21
    • MariaDB 10.4.20
  • I am not a Drupal programmer, just a Drupal site builder; all I want in this case is to flush all caches.
  • Comments are not for extended discussion; this conversation has been moved to chat.
    – apaderno
    Nov 11 at 17:21
  • First, let me say that administering a site without Drush is a lot like driving a car without a steering wheel. I'm not sure of your reasons for not wanting to install Drush, but I strongly encourage you to reconsider. As for the error, it is telling you that the credentials for your DB are incorrect. In a local setting, these are most likely contained in your settings.php or settings.local.php file. It is very likely that example.com is not the correct username for your DB.
    – Beau
    Nov 12 at 23:04
  • @Beau I reject the comparison between not using Drush and driving a car without a steering wheel, which I find stupid (I really don't mean to be not nice or evil here); I know what the error means but it wasn't the case; the credentials were correct, the case was a mismatch between the DB user to the DB in the context of privileges. After that was fixed, the problem was solved; drupal.stackexchange.com/questions/308182/…
    – Alkalix
    Nov 13 at 2:46
  • I have installed Drush many of times in the past and may do so again in the future; my original aim was to develop a single custom module just to have some custom JS and CSS, not to develop Drupal itself in general; I am a Drupal site builder not a Drupal developer, therefore in general, at least for now, Drush is just irrelevant for me.
    – Alkalix
    Nov 13 at 2:49
  • Have it your way. :)
    – Beau
    Nov 14 at 12:36

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.