---
title: "Due to popular demand - more MySQLi for WordPress!"
date: 2008-03-04
canonical: https://michaelshadle.com/2008/03/04/due-to-popular-demand-more-mysqli-for-wordpress
---

# Due to popular demand - more MySQLi for WordPress!

I've had two requests now for MySQLi updates, so here ya go. It's pretty simple to do it yourself - just look for any mysql_ string, replace it to mysqli_ (where applicable) and in some instances, change the order of the parameters.

Below is the version of wp-includes/wp-db.php for production WP 2.3.3  

  
2.  Download the file [here](/wp-content/uploads/ms/2008/03/wordpress-2.3.3-wp-db.txt)
  
4.  Copy it over the existing wp-includes/wp-db.php file
  
6.  Enjoy!
  

  
Below is a version that works against the latest in SVN trunk (right now revision 7152) using the new db.php override feature (apparently still not in 2.3.x)  

  
2.  Download the file [here](/wp-content/uploads/ms/2008/03/wordpress-svn-r7152-db.txt)
  
4.  Copy it to wp-content/db.php (important - this is a hard-coded location)
  
6.  Enjoy!
  

  
Let me know if there are any issues, but in my quick little sandbox I made it worked fine...
