How to Install and Uninstall python3-mysqldb Package on Debian 11 (Bullseye)

Last updated: November 25,2024

1. Install "python3-mysqldb" package

Please follow the guidelines below to install python3-mysqldb on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install python3-mysqldb

2. Uninstall "python3-mysqldb" package

This tutorial shows how to uninstall python3-mysqldb on Debian 11 (Bullseye):

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

3. Information about the python3-mysqldb package on Debian 11 (Bullseye)

Package: python3-mysqldb
Source: python-mysqldb (1.4.4-2)
Version: 1.4.4-2+b3
Installed-Size: 179
Maintainer: Debian Python Modules Team
Architecture: amd64
Provides: python3.9-mysqldb
Depends: python3 (<< 3.10), python3 (>= 3.9~), python3:any, libc6 (>= 2.4), libmariadb3 (>= 3.0.0)
Suggests: default-mysql-server | virtual-mysql-server, python3-mysqldb-dbg
Description: Python interface to MySQL
Description-md5: ef94561a9d5a0ef91971efb133cb764a
Homepage: https://pypi.python.org/pypi/mysqlclient
Tag: implemented-in::python
Section: python
Priority: optional
Filename: pool/main/p/python-mysqldb/python3-mysqldb_1.4.4-2+b3_amd64.deb
Size: 57012
MD5sum: c6f1a9f45711ec5713c91a16c681c2e3
SHA256: 7412c6c23c61f2760f5fa1e9ca3dfc90d950d05825b1cbf1ff4303fb118d3297