On CentOS7: I need to upgrade MariaDB from 5.5 to 10.4
I followed this guide: https://itcloudnet.blogspot.com/2019/10/how-to-upgrade-mariadb-55-to-mariadb.html but instructions on other sites are similar.
When I do
yum remove mariadb-server mariadb-devel mariadb-libs mariadb
I get
Removing:
mariadb
mariadb-devel
mariadb-libs
mariadb-server
Removing for dependencies:
perl-DBD-MySQL
php-mysql
postfix
Then I proceed with the instructions and do
yum install MariaDB-server MariaDB-client
and the output is
Installing:
MariaDB-client
MariaDB-server
Installing for dependencies:
MariaDB-common
MariaDB-compat
boost-program-options
galera-4
So, no php-mysql
here. And the biggest mystery of all is that the PHP web applications using MariaDB still work!
How come? So, after all, do I need the package php-mysql
or not?
Some clarifications:
- I use the standard Apache that comes with CentOS7
httpd-2.4.6
. - We have two legacy PHP applications that use the legacy PHP version which comes standard with CentOS7, namely
php-5.4
. - We have one newer PHP application (Mediawiki) that needs newer PHP. So, I have installed
php71
alongside withphp-5.4
, using Remi repository. - I have switched Apache from
mod_php
tophp-fpm
. - I have followed some online instructions how to make both legacy
php-fpm-4.5
and the newerphp71-php-fpm-7.1
(from Remi) work simultaneously on Apache - to serve both the two legacy and one newer web applications.
But my question still remains: Why my legacy PHP Web applications still work fine without the package php-mysql
?