Home > Backend Development > PHP Tutorial > How to Resolve Missing mysqli Extension in PHPMyAdmin on Ubuntu 12.04?

How to Resolve Missing mysqli Extension in PHPMyAdmin on Ubuntu 12.04?

Mary-Kate Olsen
Release: 2024-10-18 22:32:03
Original
569 people have browsed it

How to Resolve Missing mysqli Extension in PHPMyAdmin on Ubuntu 12.04?

Dealing with Missing mysqli Extension in PHPMyAdmin on Ubuntu 12.04

The absence of the mysqli extension can cause issues when attempting to utilize PHPMyAdmin. Here's how to resolve this problem effectively:

Understanding the Issue

Recent iterations of PHPMyAdmin no longer support the mysql extension and require mysqli instead. This is denoted by the presence of an extra "i" at the end of the extension name.

Installing the Required Extension

For PHP 7.3:

<code class="bash">sudo apt-get install php7.3-mysqli</code>
Copy after login

For PHP 8:

<code class="bash">sudo apt-get install php8.0-mysqli</code>
Copy after login

The installation will include both the old mysql extension and the new mysqli one.

Adding the Extension to php.ini

Locate your php.ini file and add the following line to the Dynamic Extensions section:

extension=mysqli.so
Copy after login

Restarting Apache

<code class="bash">sudo systemctl restart apache2</code>
Copy after login

Cache Invalidation

Clear your browser's cache to ensure that it doesn't retrieve old cached information.

Authentication

If prompted, enter your password to authenticate and press Enter. The issue should now be resolved.

The above is the detailed content of How to Resolve Missing mysqli Extension in PHPMyAdmin 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