T
T
thekiwi2021-04-04 18:50:26
PHP
thekiwi, 2021-04-04 18:50:26

How to fix "mysqli extension not found" error?

I am getting an error, mysqli extension not found. The php-mysqli extension is installed, it is not displayed in phpinfo. The main page does not load, and when you enter example.com/phpmyadmin, it displays this error.
When trying to reinstall, the following message appears:


Package php-mysqli is a virtual package provided by:
php8.0-mysql 8.0.3-1+ubuntu20.04.1+deb.sury.org+1
php7.4-mysql 7.4.16-1+ubuntu20.04.1+deb. sury.org+1
php7.3-mysql 7.3.27-9+ubuntu20.04.1+deb.sury.org+1
php7.2-mysql 7.2.34-18+ubuntu20.04.1+deb.sury.org+1
php7 .1-mysql 7.1.33-34+ubuntu20.04.1+deb.sury.org+1
php7.0-mysql 7.0.33-47+ubuntu20.04.1+deb.sury.org+1
php5.6-mysql 5.6. 40-47+ubuntu20.04.1+deb.sury.org+1
You should explicitly select one to install.

E: Package 'php-mysqli' has no installation candidate


What do you advise to do?

Ubuntu version 20.04 LTS
MySQL - Ver 8.0.23-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
PHP - 8.0.3

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question