[wp-hackers] wp + mysql ?
regulatethis at gmail.com
Thu Jun 12 14:35:11 GMT 2008
This article: http://forge.mysql.com/wiki/Converting_to_MySQLi
actually mentions a tool that simplifies the manual switching of code
to use the mysqli_* functions. Of course, it doesn't give any of the
other benefits like prepared statements, etc. Interestingly, they use
Wordpress as an example for using the code converter tool.
Aside from prepared statements and any of the implicit benefits
brought by mysqli, can anyone think of any other explicit advantages
to switching? Not to diminish the impact of what I just mentioned -
prepared statements is a great feature.
On Thu, Jun 12, 2008 at 12:33 AM, DD32 <wordpress at dd32.id.au> wrote:
> On Thu, 12 Jun 2008 03:55:19 +1000, Christopher J. Hradil
> <chradil at comcast.net> wrote:
>> 1) Is WP mysql 5.x+ compatible ? more specifically are we
>> the mysqli lib as opposed to the mysql lib ? at one point we needed to run
>> both mysql and mysqli libs because wp couldn't handle the mysqli
> The WordPress db class (wp-db) only uses mysql_* calls, However, There
> should be no reason why a MySQLi based wp-db class couldnt be createed and
> used by those who want it.
> (For reference: wp-config/db.php will be loaded in favour of
> wp-includes/wp-db.php if it exists, Just make sure to have all the same
> functions and whatnot in there :))
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers