Community Documentation

Receiving errors when trying to use mysqli extension

Last updated January 30, 2008. Created by boydjd on January 30, 2008.
Log in to edit this page.

PHP 5.0.5 does not support the mysqli extension, which is the default extension used by Drupal for mysql database access. A work-around for this issue is to modify $db_url in settings.php and specify mysql:// rather than mysqli://.

You are a victim of this bug if you see the following types of errors:

Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329

About this page

Drupal version
Drupal 4.5.x or older, Drupal 4.6.x, Drupal 4.7.x, Drupal 5.x, Drupal 6.x
Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.