Jump to content

Native MySQL Driver instead of Mysqli.


slkwrm
 Share

Recommended Posts

Hi, guys.

My friend gave me access to his shared hosting so I could install PW for him and he could experiment with it a little. The problem is that this hosting doesn't have mysqli enabled so PW compatibility check fails. Can I use Native PHP MySQL Driver instead of Mysqli and if so how can I enable it somewhere in config file of PW? If it's not possible then I will have to ask his hoster to enable mysqli. Also I've read that native driver has some performance anvantage over mysqli though it doesn't matter in my case. Thank you.

Edit: Ah, I'm sorry for posting this. My question doesn't make sense since mysqli can use native sql driver but native driver itself doesn't provide API for developer. After some googling and reading I found out that switching from original mysql API to mysqli requires some work. And after looking at the database.php code I see that it extends mysqli so it will be simplier to change hosting settings anyway.

Please, delete this topic.

Link to comment
Share on other sites

If it's alright with you, we might want to keep the topic here in case anyone else comes up with a similar issue in the future. I had thought that mysqli had some performance benefits over the older PHP mysql, but not positive on that. I think mysqli has been standard since PHP 5.0, though I recently came across a PHP 5.2.x server that did not have it (luckily all it took was a few clicks in WHM to install). The PHP developers started encouraging us to use mysqli rather than the old mysql functions when PHP 5 came out. As far as I know, the old mysql functions are no longer actively developed for PHP, just maintained for backwards compatibility.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...