Home >Database >Mysql Tutorial >How Do I Fix the \'mysqli extension is missing\' Error in phpMyAdmin on Ubuntu?

How Do I Fix the \'mysqli extension is missing\' Error in phpMyAdmin on Ubuntu?

Patricia Arquette
Patricia ArquetteOriginal
2024-12-04 13:38:11376browse

How Do I Fix the

PHPMyAdmin Error: Extension mysqli Missing

Encountering the error message "The mysqli extension is missing" when attempting to access phpMyAdmin in Ubuntu indicates that the essential mysqli extension is not available within your PHP configuration. This extension is required for the latest versions of phpMyAdmin.

Solution:

To resolve this issue, install the appropriate mysqli package for your PHP version:

  • For PHP 7.3:
sudo apt-get install php7.3-mysqli
  • For PHP 8:
sudo apt-get install php8.0-mysqli

This installation will include both the mysql and mysqli extensions. Subsequently, add the following line to your php.ini file within the Dynamic Extensions section:

extension=mysqli.so

Restart the Apache service:

sudo systemctl restart apache2

If prompted, authenticate and press enter.

Clear your browser cache and refresh the phpMyAdmin page. This should resolve the extension missing error.

The above is the detailed content of How Do I Fix the \'mysqli extension is missing\' Error in phpMyAdmin on Ubuntu?. 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