How to Install and Uninstall python-mysqldb Package on Debian 10 (Buster)

Last updated: May 16,2024

1. Install "python-mysqldb" package

Please follow the step by step instructions below to install python-mysqldb on Debian 10 (Buster)

$ sudo apt update $ sudo apt install python-mysqldb

2. Uninstall "python-mysqldb" package

This is a short guide on how to uninstall python-mysqldb on Debian 10 (Buster):

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

3. Information about the python-mysqldb package on Debian 10 (Buster)

Package: python-mysqldb
Version: 1.3.10-2
Installed-Size: 193
Maintainer: Debian Python Modules Team
Architecture: amd64
Provides: python2.7-mysqldb
Depends: python (<< 2.8), python (>= 2.7~), python:any (<< 2.8), python:any (>= 2.7~), libc6 (>= 2.4), libmariadb3 (>= 3.0.0), libssl1.1 (>= 1.1.0), zlib1g (>= 1:1.1.4)
Suggests: default-mysql-server | virtual-mysql-server, python-egenix-mxdatetime, python-mysqldb-dbg
Description: Python interface to MySQL
Description-md5: cb3fe37f0093f942d4f127716166ffcf
Homepage: https://pypi.python.org/pypi/mysqlclient
Tag: devel::lang:python, devel::lang:sql, devel::library,
implemented-in::python, role::devel-lib, works-with::db
Section: python
Priority: optional
Filename: pool/main/p/python-mysqldb/python-mysqldb_1.3.10-2_amd64.deb
Size: 59112
MD5sum: 05e47cb0171866d6db1114bd3ad7b150
SHA256: 78a70db5382bf16d3a878bc7e067786c3da8102d15fb55ed2c14697429a82e1d