Magento Forum

   
PHP Extension “mysqli” must be loaded
 
Rastem
Jr. Member
 
Total Posts:  5
Joined:  2007-11-28
 

Hey all,

I’m having a bit of trouble installing magento to try it out. I get this error:

PHP Extension “mysqli” must be loaded

However, my php seems to have this installed as my phpinfo has these lines:

--with-mysqli=shared,/mysql5/bin/mysql_config

I don’t have a ‘mysqli’ entry in the output later on in phpinfo() as I do with ‘mysql’ so I’m guessing it may indeed not be installed. I’m on a shared host with limited access to PHP, so what options am I left with? Is there a way to use mysql instead of mysqli with magento? (I read that mysqli isn’t necessarily faster / more stable anyhow, so I may want to do that anyway)

Any help is appreciated!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Michael
Enthusiast
 
Total Posts:  826
Joined:  2007-08-31
 

Hi Rastem,

You can try to use pdo_mysql setup (without having mysqli) with the latest Magento version (0.6.14100). Just replace app/etc/config.xml and app/code/core/Mage/Install/etc/install.xml with the attached ones.

Let me know if it helps.

Thank you.

File Attachments
config.xml  (File Size: 12KB - Downloads: 352)
install.xml  (File Size: 3KB - Downloads: 408)
 
Magento Community Magento Community
Magento Community
Magento Community
 
Rastem
Jr. Member
 
Total Posts:  5
Joined:  2007-11-28
 

Thanks for the info, that helped a lot, however I hit a PHP error:

Fatal error: Call to a member function getClassName() on a non-object in /home/testing/web/public/magento/app/code/core/Mage/Core/Model/Resource.php on line 92

Could this error be from those two files I copied into the appropriate directories? I copied config.xml into app/etc/config, and install.xml into app/code/core/Mage/Install/etc as directed. I’m not sure if I should open a new thread on this. I’ll open a new one for reference as well.

LMK,

J.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Michael
Enthusiast
 
Total Posts:  826
Joined:  2007-08-31
 

Hi Rastem,

Which Magento version do you try to install ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Rastem
Jr. Member
 
Total Posts:  5
Joined:  2007-11-28
 

The latest one (Beta 0.6.14100)

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top