![]() We can confirm this by checking the loaded PHP module. Notice that we don’t have php-mysql packages that provide modules to connect our PHP application with our freshly installed Percona Server 8.0 server. We will fix that later.Īfter that, we should be able to install Percona Server 8.0 without error: $ yum install percona-server-serverĪt this point, here are MySQL related packages that we have in the server: $ rpm -qa | egrep 'php-mysql|mysql|maria|percona' Our primary concern is the php-mysql packages which will be removed because of the dependency on libmysqlclient.so.18 provided by mariadb-libs. Removing mariadb-libs will also remove other packages that depend on this from the system. > Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: php-mysql-5.4.86_64 > Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.86_64 > Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 86_64 ![]() > Processing Dependency: libmysqlclient.so.18()(64bit) for package: php-mysql-5.4.86_64 > Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.86_64 > Processing Dependency: libmysqlclient.so.18()(64bit) for package: 86_64 Let’s remove them first and then try to install the Percona Server 8.0 once more: $ yum remove mariadb mariadb-libs ![]() Since this is a plain new server, removing the existing MariaDB packages is not a big issue. The above simply means that the Percona Server shared compat package shall obsolete the mariadb-libs-5.5.60, which is required by the already installed mariadb-server packages. You could try running: rpm -Va -nofiles -nodigest You could try using -skip-broken to work around the problem However, we got the following error after running the very last command: -> Finished Dependency ResolutionĮrror: Package: 1:mariadb-5.5.60-1.el7_5.x86_64 mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 To do that, we have to install Percona Repository and enable the Percona Server 8.0 repository: $ yum install However, in this project, we are required to run on MySQL 8.0 so we chose Percona Server 8.0 to replace the default existing MariaDB installation we have on that server. When looking at the API version reported by phpinfo() for MySQL-related clients, they are all matched to the MariaDB version that we have installed: $ php -i | egrep -i 'client.*version'Ĭlient API library version => 5.5.60-MariaDBĬlient API header version => 5.5.60-MariaDBĪt this point, we can conclude that the installed php-mysql module is built and compatible with MariaDB 5.5.60. The following MySQL-related modules will then be loaded into PHP: $ php -m | grep mysql You would get the following related packages installed: $ rpm -qa | egrep 'php-mysql|mysql|maria' PHP and MySQL on CentOS 7įirst of all, let’s see what files are being provided by php-mysql package: $ cat /etc/redhat-releaseīy default, if we installed the standard LAMP stack components come with CentOS 7, for example: $ yum install -y httpd php php-mysql php-gd php-curl mod_ssl Note that it would work best to run the latest version of PHP 7 alongside MySQL 8.0 to take advantage of all of the significant improvements introduced in the newer versions. This blog is based on actual experience with an internal project that required PHP 5 application to be running alongside our new MySQL 8.0 in a new environment. In this blog post, we’ll walk you through how we can run PHP 5 applications with the latest version of MySQL 8.0 on CentOS 7 operating system. Having said that, there is always a way to make your legacy applications run with the newer database versions, and thus take advantage of new features. If you are installing PHP packages via operating system repository, there is still a chance you will end up with PHP 5 packages, e.g. Despite the fact that PHP 5 has reached end-of-life, there are still legacy applications built on top of it that need to run in production or test environments.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |