How to Install and Uninstall python3-mysqldb Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: December 28,2024

1. Install "python3-mysqldb" package

Learn how to install python3-mysqldb on Ubuntu 20.04 LTS (Focal Fossa)

$ 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 20.04 LTS (Focal Fossa):

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

3. Information about the python3-mysqldb package on Ubuntu 20.04 LTS (Focal Fossa)

Package: python3-mysqldb
Architecture: amd64
Version: 1.4.4-2build1
Priority: optional
Section: python
Source: python-mysqldb
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 177
Provides: python3.8-mysqldb
Depends: python3 (<< 3.9), python3 (>= 3.8~), python3:any, libc6 (>= 2.4), libmysqlclient21 (>= 8.0.11)
Suggests: default-mysql-server | virtual-mysql-server, python3-mysqldb-dbg
Filename: pool/main/p/python-mysqldb/python3-mysqldb_1.4.4-2build1_amd64.deb
Size: 44900
MD5sum: 10a73b854de23569153d6bee5270e672
SHA1: f6dcb5ad43cd38b2df84020f940eb3747c23aced
SHA256: 98581a2f910134655ae834186288d3a7a06a98ac73be66de3f118b8370ab6f58
Homepage: https://pypi.python.org/pypi/mysqlclient
Description: Python interface to MySQL
Description-md5: ef94561a9d5a0ef91971efb133cb764a