Extension mysqli is missing, phpmyadmin doesn't work
Latest phpMyAdmin versions require mysqli extension and will no longer work with mysql one (note the extra "i" at the end of its name).
For PHP 7.3
sudo apt-get install php7.3-mysqli
For PHP 8
sudo apt-get install php8.0-mysqli
Will install package containing both old one and the new one, so afterwards all you need to do is to add
extension=mysqli.so
in your php.ini, under the subject Dynamic Extensions.
Restart apache:
sudo systemctl restart apache2
Authenticate if needed and press enter.
Should be done! If problem still occurs remove the browser cache.
Error in phpmyadmin - `mysqli extension is missing`
If you change some configuration and haven't remove it in reinstall, then didn't help. Follow this command to clear old configs:
sudo apt purge php7.2-* phpmyadmin
After removed, reinstall packages:
sudo apt install apache2 php7.2 php7.2-mysql # Add other dependent if you need ...
Now, mysqli
should exists in /etc/php/7.2/mods-available/20-mysqli.ini
:
$ cat /etc/php/7.2/mods-available/mysqli.ini
; configuration for php mysql module
; priority=20
extension=mysqli.so
If you using FPM
, should have a soft link in /etc/php/7.2/fpm/conf.d/20-mysqli.ini
phpmyadmin dosen't work in Windows Server, extension mysqli is missing
Check for the following config for extensions in php.ini file
extension=bz2
extension=curl
extension=fileinfo
extension=gd2
extension=gettext
;extension=gmp
;extension=intl
;extension=imap
;extension=interbase
;extension=ldap
extension=mbstring
extension=exif ; Must be after mbstring as it depends on it
extension=mysqli
;extension=oci8_12c ; Use with Oracle Database 12c Instant Client
;extension=odbc
;extension=openssl
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
;extension=pdo_pgsql
extension=pdo_sqlite
;extension=pgsql
;extension=shmop
;extension=php_gd2.dll
Related Topics
How to Resolve a Http 414 "Request Uri Too Long" Error
How to Add a Space Between Every Sequence of Four Characters (Like a Credit Card Number)
A Way to Determine Browser Width in PHP Without JavaScript
Patch and Put Request Does Not Working With Form-Data
Object of Class Mysqli_Result Could Not Be Converted to String
How to Properly Encode Utf-8 for JavaScript and Json
Php How to Loop Through a Post Array
How to Flatten a Multidimensional Array
How to Create Cron Job Using PHP
Dynamic Menu and Role Permission in Codeigniter
How to Add Auto Numbering With Each Fetching Row
Laravel Eloquent How to Get the Minimum Value That Is Not Null
Codeigniter Session Is Not Working on PHP 7
How to Unlink (Delete) an Image in Codeigniter