"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > How to Fix the \"Missing mysqli Extension\" Error in phpMyAdmin?

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

Published on 2024-11-10
Browse:355

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

For PHP 8, use:

sudo apt-get install php8.0-mysqli

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

Finally, restart Apache with the following command:

sudo systemctl restart apache2

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

Release Statement This article is reproduced in: 1729261997 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3