slkwrm Posted May 3, 2012 Share Posted May 3, 2012 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 More sharing options...
ryan Posted May 4, 2012 Share Posted May 4, 2012 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 More sharing options...
slkwrm Posted May 5, 2012 Author Share Posted May 5, 2012 Of course if it may be helpful for anyone let's leave it here. Anyone interested may find these links helpful: Choosing an API Choosing a library 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now