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
Release: 2024-12-04 13:38:11
Original
295 people have browsed it

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
Copy after login
  • For PHP 8:
sudo apt-get install php8.0-mysqli
Copy after login

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

Restart the Apache service:

sudo systemctl restart apache2
Copy after login

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!

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