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.
When I set 'driver' => 'mysqli' in settings.php I get the following error in my error log:
PHP Fatal error: Database::require_once(): Failed opening required '/home/drupal/web/public/includes/database/mysqli/database.inc' (include_path='.:/opt/local/lib/php') in /home/drupal/web/public/includes/database/database.inc on line 1347
Comments
Comment #1
Crell CreditAttribution: Crell commentedThat's because Drupal 7 uses PDO, whose mysql driver is named "mysql". There is no mysqli support in Drupal 7, only PDO-based drivers.