Home >Backend Development >PHP Tutorial >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:
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!