How to Fix phpMyAdmin Error: mysqli Extension Missing in Ubuntu

DDD
Release: 2024-10-18 22:37:03
Original
337 people have browsed it

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

Restart Apache using:

sudo systemctl restart apache2
Copy after login

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!

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!