How to solve “Fatal error: Class ‘MySQLi’ not found” with PHP?

Spread the love

Sometimes, we want to solve "Fatal error: Class ‘MySQLi’ not found" with PHP.

In this article, we’ll look at how to solve "Fatal error: Class ‘MySQLi’ not found" with PHP.

How to solve "Fatal error: Class ‘MySQLi’ not found" with PHP?

To solve "Fatal error: Class ‘MySQLi’ not found" with PHP, we install MySQLi.

To install it, we run

sudo apt-get install php-mysqlnd

to install MySQLi by installing the php-mysqlnd package.

Conclusion

To solve "Fatal error: Class ‘MySQLi’ not found" with PHP, we install MySQLi.

Leave a Reply

Your email address will not be published.