How to Install and Uninstall php-mysql Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: November 22,2024

1. Install "php-mysql" package

This guide covers the steps necessary to install php-mysql on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php-mysql

2. Uninstall "php-mysql" package

Please follow the guidance below to uninstall php-mysql on Ubuntu 18.04 LTS (Bionic Beaver):

$ sudo apt remove php-mysql $ sudo apt autoclean && sudo apt autoremove

3. Information about the php-mysql package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: php-mysql
Source: php-defaults (92+ubuntu18.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.1+92+ubuntu18.04.1+deb.sury.org+2
Depends: php-common, php8.1-mysql
Filename: pool/main/p/php-defaults/php-mysql_8.1+92+ubuntu18.04.1+deb.sury.org+2_all.deb
Size: 7288
MD5sum: 96cef2a314d990a9a9871b604a477283
SHA1: 9afce5b8894d23bd95f3630ba213ee412bffdb0c
SHA256: a61d6a6903f7e8283d8d23b1c6099e017f21fbf74f66202ac889dec3c5e17a6c
Description: MySQL module for PHP [default]
Description-md5: b06938348d6d72a1f125f8d3d536eddb

Package: php-mysql
Architecture: all
Version: 1:7.2+60ubuntu1
Priority: optional
Section: php
Source: php-defaults (60ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 12
Depends: php-common, php7.2-mysql
Filename: pool/main/p/php-defaults/php-mysql_7.2+60ubuntu1_all.deb
Size: 2004
MD5sum: 70c79f6dc6dee3fc4801496689af96e6
SHA1: 81499a9b621f265c963d9ccddfa1336bf086cb79
SHA256: 206dd0f34f6d0983d0b1941eb32ff34dcfa6d7447fe25b15adcebb001f3cadc0
Description: MySQL module for PHP [default]
Description-md5: 8e8658b8480c996f63889ffae4648d46
Task: lamp-server
Supported: 5y