How to Install and Uninstall php-mysql Package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Last updated: November 07,2024

1. Install "php-mysql" package

In this section, we are going to explain the necessary steps to install php-mysql on Ubuntu 22.04 LTS (Jammy Jellyfish)

$ sudo apt update $ sudo apt install php-mysql

2. Uninstall "php-mysql" package

This is a short guide on how to uninstall php-mysql on Ubuntu 22.04 LTS (Jammy Jellyfish):

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

3. Information about the php-mysql package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Package: php-mysql
Source: php-defaults (94+ubuntu22.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.3+94+ubuntu22.04.1+deb.sury.org+2
Depends: php-common, php8.3-mysql
Filename: pool/main/p/php-defaults/php-mysql_8.3+94+ubuntu22.04.1+deb.sury.org+2_all.deb
Size: 7230
MD5sum: 51e9a23cee00c4d548743cc8ddf74df6
SHA1: 27e0f88cf529912c18a3839692c37918b62ebaa9
SHA256: 0856c4ef35c320e99c79e393d3fc658002400d37318c635b561b2fbc1ef45284
Description: MySQL module for PHP [default]
Description-md5: 41fd5af30c00cd4b35e4a8a1125ac7c0

Package: php-mysql
Architecture: all
Version: 2:8.1+92ubuntu1
Priority: optional
Section: php
Source: php-defaults (92ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 14
Depends: php-common, php8.1-mysql
Filename: pool/main/p/php-defaults/php-mysql_8.1+92ubuntu1_all.deb
Size: 1834
MD5sum: bdc6691af3c60a0c2c0f46b507512d25
SHA1: 995bcc26687b443511a8ee91b942526c77cd5070
SHA256: 8b966423a18222b343afae0a721fa66a94b47857addfd4ff48e99e7ea2edc976
SHA512: 082c6089eb0ec314d4503673bbafb1b71da1ba594d2761005ecbe2289595a64aef63a400acceba6f0b605280a93559451ff896b2656261384992a777116ee7c9
Description: MySQL module for PHP [default]
Description-md5: b06938348d6d72a1f125f8d3d536eddb
Task: lamp-server