Home > Backend Development > PHP Tutorial > 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
Release: 2024-10-18 22:30:30
Original
313 people have browsed it

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!

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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template