Home  >  Article  >  Backend Development  >  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?

Linda Hamilton
Linda HamiltonOriginal
2024-10-18 22:30:30182browse

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.

The above is the detailed content of Why is PhpMyAdmin Giving the \"MySQLi Extension Missing\" Error on Ubuntu 12.04?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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