Troubleshooting MySQLi Extension Missing for phpMyAdmin
Issue:
Unable to connect to phpMyAdmin due to missing MySQLi extension. The phpinfo() script does not indicate the presence of either MySQLi or MySQL extensions.
Solution:
1. Check PHP Version:
For PHP 7.3:
Run the following command to install the MySQLi extension:
sudo apt-get install php7.3-mysqli
For PHP 8:
Run the following command to install the MySQLi extension:
sudo apt-get install php8.0-mysqli
2. Edit php.ini:
After installing the MySQLi extension, add the following line to your php.ini file:
extension=mysqli.so
3. Restart Apache:
Restart Apache to apply the changes:
sudo systemctl restart apache2
4. Cache Clearing:
If the problem persists, clear the browser cache to ensure that you are not loading an outdated version of the page.
Additional Notes:
The above is the detailed content of How to Fix Missing MySQLi Extension Issue in phpMyAdmin for PHP Versions 7.3 and 8?. For more information, please follow other related articles on the PHP Chinese website!