How to Install and Uninstall php-mysql.x86_64 Package on Amazon Linux 2

Last updated: November 26,2024

1. Install "php-mysql.x86_64" package

This guide covers the steps necessary to install php-mysql.x86_64 on Amazon Linux 2

$ sudo yum makecache $ sudo yum install php-mysql.x86_64

2. Uninstall "php-mysql.x86_64" package

In this section, we are going to explain the necessary steps to uninstall php-mysql.x86_64 on Amazon Linux 2:

$ sudo yum remove php-mysql.x86_64 $ sudo yum autoremove

3. Information about the php-mysql.x86_64 package on Amazon Linux 2

Loaded plugins: ovl, priorities
Available Packages
Name : php-mysql
Arch : x86_64
Version : 5.4.16
Release : 43.amzn2
Size : 101 k
Repo : amzn2-core/2/x86_64
Summary : A module for PHP applications that use MySQL databases
URL : http://www.php.net/
License : PHP
Description : The php-mysql package contains a dynamic shared object that will
: add MySQL database support to PHP. MySQL is an object-relational
: database management system. PHP is an HTML-embeddable scripting
: language. If you need MySQL support for PHP applications, you will
: need to install this package and the php package.