How to Install and Uninstall python3-mysqldb Package on Ubuntu 24.04 LTS (Noble Numbat)

Last updated: November 25,2024

1. Install "python3-mysqldb" package

Please follow the steps below to install python3-mysqldb on Ubuntu 24.04 LTS (Noble Numbat)

$ sudo apt update $ sudo apt install python3-mysqldb

2. Uninstall "python3-mysqldb" package

Please follow the step by step instructions below to uninstall python3-mysqldb on Ubuntu 24.04 LTS (Noble Numbat):

$ sudo apt remove python3-mysqldb $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-mysqldb package on Ubuntu 24.04 LTS (Noble Numbat)

Package: python3-mysqldb
Architecture: amd64
Version: 1.4.6-2build2
Priority: optional
Section: python
Source: python-mysqldb
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 232
Depends: python3 (<< 3.13), python3 (>= 3.11~), python3:any, libc6 (>= 2.4), libmysqlclient21 (>= 8.0.11)
Suggests: default-mysql-server | virtual-mysql-server
Filename: pool/main/p/python-mysqldb/python3-mysqldb_1.4.6-2build2_amd64.deb
Size: 51910
MD5sum: 2ecc5fde5c79131709ea3a1ed429040f
SHA1: fb5f2e662d7c2695189969ea182a2351939e61dc
SHA256: e0f794d617483f52f47f77b1f7e00b631416117d54983558cf20947011b1742d
SHA512: 37eab0ef8bdacab0e9af1c0c7d1ca06372bafd864f6c8cf42257fc3a617dda5124fbbb8c18fab96064adae780876773867d9b5c4338692d8e38823e2a29b60b6
Homepage: https://github.com/PyMySQL/mysqlclient
Description: Python interface to MySQL
Description-md5: ef94561a9d5a0ef91971efb133cb764a