Home > Database > Mysql Tutorial > Why is phpMyAdmin Failing on Ubuntu 12.04 Due to a Missing mysqli Extension?

Why is phpMyAdmin Failing on Ubuntu 12.04 Due to a Missing mysqli Extension?

Susan Sarandon
Release: 2024-12-06 14:03:19
Original
572 people have browsed it

Why is phpMyAdmin Failing on Ubuntu 12.04 Due to a Missing mysqli Extension?

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
Copy after login

For PHP 8:

sudo apt-get install php8.0-mysqli
Copy after login

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
Copy after login

Restart Apache with:

sudo systemctl restart apache2
Copy after login

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!

source:php.cn
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