Home  >  Article  >  Backend Development  >  How to Fix phpMyAdmin Error: mysqli Extension Missing in Ubuntu

How to Fix phpMyAdmin Error: mysqli Extension Missing in Ubuntu

DDD
DDDOriginal
2024-10-18 22:37:03338browse

How to Fix phpMyAdmin Error: mysqli Extension Missing in Ubuntu

phpMyAdmin Error: mysqli Extension Missing

Ubuntu users trying to utilize phpMyAdmin on their 12.04 systems may encounter an error message indicating that the mysqli extension is missing. This issue arises due to phpMyAdmin's compatibility with specific PHP versions and database extensions.

Source of the Error

PhpMyAdmin has evolved to require the mysqli extension, which surpasses the capabilities of its predecessor, the mysql extension. However, most PHP distributions come preloaded with both extensions installed but inactive.

解决方案

To resolve this issue, you must install the necessary mysqli package for the PHP version you are using:

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

Post-installation, add the following line in your php.ini file:

extension=mysqli.so

Restart Apache using:

sudo systemctl restart apache2

If prompted for authentication, press Enter.

Lastly, ensure that your browser cache is cleared. These steps should resolve the issue and allow you to access phpMyAdmin.

The above is the detailed content of How to Fix phpMyAdmin Error: mysqli Extension Missing in 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