I encountered this problem recently.
You need to make sure that the mysqlnd
extension is installed for that particular part of mysqli
to work.
Depending on if you are using Windows or Linux (and what flavor of either) will determine how this is done.
In CentOS, it is pretty straight-forward :
yum install php-mysqlnd
And to confirm it is installed, you can create a php page with the following :
<?php
phpinfo();
?>
Then look for mysqlnd
or native
You can also validate it is installed by
php -m | grep mysqlnd
OR
php -i | grep mysqlnd