How to Install and Uninstall python-mysqldb Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: June 06,2024

1. Install "python-mysqldb" package

In this section, we are going to explain the necessary steps to install python-mysqldb on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install python-mysqldb

2. Uninstall "python-mysqldb" package

Please follow the guidelines below to uninstall python-mysqldb on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the python-mysqldb package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: python-mysqldb
Priority: optional
Section: python
Installed-Size: 163
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Architecture: amd64
Version: 1.3.7-1build2
Provides: python2.7-mysqldb
Depends: python (<< 2.8), python (>= 2.7~), python:any (>= 2.7.5-5~), libc6 (>= 2.4), libmysqlclient20 (>= 5.7.11)
Suggests: mysql-server, python-egenix-mxdatetime, python-mysqldb-dbg
Filename: pool/main/p/python-mysqldb/python-mysqldb_1.3.7-1build2_amd64.deb
Size: 42386
MD5sum: 4b93ee8c91fda9773471c4f9b3026517
SHA1: c925bbeed0a8f11063d57d3424172349dadb2a19
SHA256: 3ca1a39e025def7283f5f5cde2e144c1793fe8bc27e844ff4ee5450db532bb07
Description-en: Python interface to MySQL
Mysqlclient is an interface to the popular MySQL database server for Python.
.
This is a fork of MySQLdb. It add Python 3.3 support and merges some pull
requests.
.
This package contains modules for all Python 2.x versions supported in Debian.
Description-md5: cb3fe37f0093f942d4f127716166ffcf
Homepage: https://pypi.python.org/pypi/mysqlclient
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 3y
Task: mythbuntu-frontend, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master