O
O
Oposum2021-08-28 11:59:58
PHP
Oposum, 2021-08-28 11:59:58

How to fix phpmyadmin error "mysqli extension not found" in Debian?

Hi all.
As usual, from the category of "suddenly broke":
Phpmyadmin stopped working after an unsuccessful migration to Yii2 and writes the standard "phpMyAdmin - Error Mysqli
extension not found. Please check your PHP settings ..." I
check php.ini along the path that issued phpinfo(),
extension=mysqli
extension=pdo_mysql
... further console output ls /etc/php/7.3/mods-available

calendar.ini  exif.ini	    iconv.ini	  json.ini	 mysqli.ini   pdo_mysql.ini  shmop.ini	    sysvsem.ini    xml.ini
ctype.ini     fileinfo.ini  igbinary.ini  mbstring.ini	 mysqlnd.ini  phar.ini	     simplexml.ini  sysvshm.ini    xmlreader.ini
curl.ini      ftp.ini	    imagick.ini   memcached.ini  opcache.ini  posix.ini      sockets.ini    tokenizer.ini  xmlwriter.ini
dom.ini       gettext.ini   intl.ini	  msgpack.ini	 pdo.ini      readline.ini   sysvmsg.ini    wddx.ini	   xsl.ini

but when I want to see all the modules connected, an interesting warning appears:
[email protected] ~  php -m
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/lib/php/20200930/mysqli (/usr/lib/php/20200930/mysqli: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/mysqli.so (/usr/lib/php/20200930/mysqli.so: undefined symbol: mysqlnd_global_stats)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /usr/lib/php/20200930/pdo_mysql (/usr/lib/php/20200930/pdo_mysql: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/pdo_mysql.so (/usr/lib/php/20200930/pdo_mysql.so: undefined symbol: pdo_parse_params)) in Unknown on line 0
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
imagick
intl
json
libxml
mbstring
memcached
msgpack
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

Please help - how to solve? Everything seems to be there, but...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Ivanoff, 2021-08-28
@Thoth777

what version of php is installed?
what version of php is used in the webserver?
try uninstalling the mysqli extension and reinstalling it

L
Lazy @BojackHorseman PHP, 2021-08-28
Tag

cap obvious answers
PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/lib/php/20200930/mysqli (/usr/lib/php/20200930/mysqli: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/mysqli.so (/usr/lib/php/20200930/mysqli.so: undefined symbol: mysqlnd_global_stats)) in Unknown on line 0
then everything is googled by the text of the error.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question