phpMyAdmin Issue: Missing Extension mysqli
Problem:
On Ubuntu 12.04, phpMyAdmin fails to function due to a missing mysqli extension, despite installing Apache2, PHP5, MySQL, and phpMyAdmin. The phpinfo() function does not display any information related to mysqli or mysql.
Solution:
Latest versions of phpMyAdmin rely on the mysqli extension, which differs from the older mysql extension. To resolve the issue:
For PHP 7.3:
sudo apt-get install php7.3-mysqli
For PHP 8:
sudo apt-get install php8.0-mysqli
These commands will install a package containing both the mysqli and mysql extensions.
Next, edit your php.ini file and add the following line under the "Dynamic Extensions" section:
extension=mysqli.so
Restart Apache with:
sudo systemctl restart apache2
Authenticate if required.
The issue should now be resolved. If not, clear the browser cache.
The above is the detailed content of Why is phpMyAdmin Failing on Ubuntu 12.04 Due to a Missing mysqli Extension?. For more information, please follow other related articles on the PHP Chinese website!