Are you using MySQL 8? If so, be aware that the PHP 7.3 native MySQL driver (mysqlnd) seems to have issues with recognizing MySQL 8, and as a result, the mysqli extension will not be loaded. When WordPress can’t find the mysqli extension, it will drop back to the mysql extension, which does not exist in PHP 7.3. Hence the cryptic error message. (This is a bug; WP should not drop back to the mysql extension if PHP 7.0+ is loaded.)
If this is your situation, your only recourse is to revert to PHP 7.2 or MySQL 5.7. I suggest doing both…the term “bleeding edge” came about for a reason!
Hello again,
Thanks for your answers.
I didn’t provide enough information before.
I am using mariadb
MariaDB-client-10.3.13-1.el7.centos.x86_64
MariaDB-server-10.3.13-1.el7.centos.x86_64
MariaDB-common-10.3.13-1.el7.centos.x86_64
MariaDB-compat-10.3.13-1.el7.centos.x86_64
with nginx
nginx-1.15.9-1.el7_4.ngx.x86_64
and the bellow php packages with php-mysqlnd-7.3.2 already installed.
php-bcmath-7.3.2-1.el7.remi.x86_64
php73-php-cli-7.3.2-1.el7.remi.x86_64
php-pdo-7.3.2-1.el7.remi.x86_64
php-7.3.2-1.el7.remi.x86_64
php-gd-7.3.2-1.el7.remi.x86_64
php-fpm-7.3.2-1.el7.remi.x86_64
php73-runtime-2.0-1.el7.remi.x86_64
php73-2.0-1.el7.remi.x86_64
php-mysqlnd-7.3.2-1.el7.remi.x86_64
php-xml-7.3.2-1.el7.remi.x86_64
php-pecl-zip-1.15.4-1.el7.remi.7.3.x86_64
php-mbstring-7.3.2-1.el7.remi.x86_64
php73-php-json-7.3.2-1.el7.remi.x86_64
php73-php-fpm-7.3.2-1.el7.remi.x86_64
php-json-7.3.2-1.el7.remi.x86_64
php-cli-7.3.2-1.el7.remi.x86_64
php-process-7.3.2-1.el7.remi.x86_64
php-devel-7.3.2-1.el7.remi.x86_64
php73-php-common-7.3.2-1.el7.remi.x86_64
php-common-7.3.2-1.el7.remi.x86_64
php-fedora-autoloader-1.0.0-1.el7.noarch
php-pear-1.10.8-1.el7.remi.noarch
php-pecl-mcrypt-1.0.2-2.el7.remi.7.3.x86_64
I don’t know if I am missing something else or it is another versioning issue.
As you can see I am using latest mariadb, php and nginx. I can host web pages fine but something of the above doesn’t seem to be working with wordpress.
Thanks