"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 > Why is PhpMyAdmin Giving the \"MySQLi Extension Missing\" Error on Ubuntu 12.04?

Why is PhpMyAdmin Giving the \"MySQLi Extension Missing\" Error on Ubuntu 12.04?

Published on 2024-11-07
Browse:177

Why is PhpMyAdmin Giving the \

PhpMyAdmin Error: MySQLi Extension Missing

Facing an issue with PhpMyAdmin on Ubuntu 12.04? Despite installing Apache2, PHP5, MySQL, and PhpMyAdmin, you've encountered the "mysqli extension is missing" error.

Although you've uncommented the "extension=mysql.so" line in php.ini, it remains unresolved. Here's why:

Recent PhpMyAdmin versions require the mysqli extension, no longer compatible with the older mysql extension. To resolve this issue, follow these steps:

  • Install the mysqli extension:

    • For PHP 7.3: sudo apt-get install php7.3-mysqli
    • For PHP 8: sudo apt-get install php8.0-mysqli
  • Add the following line to your php.ini: extension=mysqli.so
  • Restart Apache: sudo systemctl restart apache2

Once completed, PhpMyAdmin should operate as expected. Remember to clear your browser cache if the issue persists.

Release Statement This article is reprinted at: 1729261756 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