While opening phpmyadmin from my localhost via: http://localhost/phpmyadmin I faced an error which said:
The mysqli extension is missing. Please check your PHP configuration. See our documentation for more information.
With some internet surfing, I found the set of commands to install mysqli extension for php i.e. mysqlnd. MySQLND stands for MySQL Native Driver. In order to run mysql services for php we need to install this native driver. In Ubuntu in order to install mysqlnd first see which version of php is installed. use this command in your terminal.
php --version
After you detect your version now you can install the native driver respectively. No run these commands:
sudo apt install php7-mysqlnd # sudo apt install php7-mysqlnd
In newer Ubuntu distribution native driver name is something like: php7-mysqlnd-ms. Choose any of the name and install your mysql native driver. Next after the installation of native driver you need to restart the apache server with following command:
sudo /etc/init.d/apache2 restart
This successfully installs mysqli. For the error mentioned above see the link below:
One comment
Comments are closed.