Skip to content
Advertisement

Mysqli not installed?

I get the following error: Fatal error: Class ‘mysqli’ not found in my php script I have php5.3.3-7 installed and I get this when I run apt-cache show php5-mysql

JavaScript

There is nothing about mysql at all in php info. How do I find the extention and do I have to istall it? There are many references to mysqli in my php.ini. But something is wrong.

Advertisement

Answer

Have you actually installed the php5-mysql package? apt-cache show will give you information on packages that aren’t installed (you want dpkg -l to list installed packages). If the package is installed, double-check that it’s enabled (/etc/php5/conf.d/mysql.ini is the place to look).

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement