Home > Backend Development > PHP Tutorial > How to Fix the \'Missing mysqli Extension\' Error in phpMyAdmin?

How to Fix the \'Missing mysqli Extension\' Error in phpMyAdmin?

DDD
Release: 2024-10-18 22:33:30
Original
1133 people have browsed it

How to Fix the

Troubleshooting phpMyAdmin: Extension mysqli Missing

When attempting to use phpMyAdmin in Ubuntu 12.04, users may encounter the error message "The mysqli extension is missing." This issue arises when the necessary extension for MySQL database connectivity is either not installed or incorrectly configured.

To resolve this issue, the mysqli extension must be installed and enabled. Latest versions of phpMyAdmin require the mysqli extension instead of the legacy mysql extension. For PHP 7.3, run the following command:

sudo apt-get install php7.3-mysqli
Copy after login

For PHP 8, use:

sudo apt-get install php8.0-mysqli
Copy after login

This command will install a package containing both the old mysql extension and the new mysqli extension. Next, add the following line to your php.ini file under the "Dynamic Extensions" section:

extension=mysqli.so
Copy after login

Finally, restart Apache with the following command:

sudo systemctl restart apache2
Copy after login

Authenticate if necessary and press Enter. If the problem persists, clear your browser cache.

The above is the detailed content of How to Fix the \'Missing mysqli Extension\' Error in phpMyAdmin?. For more information, please follow other related articles on the PHP Chinese website!

source:php
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template