Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Class mysqli not found

Tags:

php

mysqli

I have used mysqli to connect to the database in my application. It worked fine for a few days and suddenly it started showing the following error:

Fatal error: Class 'mysqli' not found

The line I used to connect to the database is:

 $link = new mysqli('localhost', 'uname', 'password', 'scripts');

Could you please tell me what might have gone wrong?

like image 699
abcdefgh Avatar asked Oct 02 '22 20:10

abcdefgh


1 Answers

You have to enable mysqli extension in your php.ini

Just search for extension=php_mysqli.dll or somethig and remove the #

like image 194
Jordi Kroon Avatar answered Oct 07 '22 20:10

Jordi Kroon