php – Fatal error: Call to undefined function mysqli_connect()

php – Fatal error: Call to undefined function mysqli_connect()

Simply do it

sudo apt install php-mysqli

It works perfectly and it is version independent

If you host the server yourself, in the php.ini file remove the semicolon in front of the extension extension=php_mysqli.dll

php – Fatal error: Call to undefined function mysqli_connect()

For CentOS, do:

sudo yum install php-mysqli

Leave a Reply

Your email address will not be published.