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

Last updated: November 25,2024

1. Install "python3-mysqldb" package

Please follow the step by step instructions below to install python3-mysqldb on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install python3-mysqldb

2. Uninstall "python3-mysqldb" package

Here is a brief guide to show you how to uninstall python3-mysqldb on Ubuntu 16.04 LTS (Xenial Xerus):

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

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

Package: python3-mysqldb
Priority: optional
Section: python
Installed-Size: 157
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Architecture: amd64
Source: python-mysqldb
Version: 1.3.7-1build2
Provides: python3.5-mysqldb
Depends: python3 (<< 3.6), python3 (>= 3.5~), libc6 (>= 2.4), libmysqlclient20 (>= 5.7.11)
Suggests: mysql-server, python-egenix-mxdatetime, python3-mysqldb-dbg
Filename: pool/main/p/python-mysqldb/python3-mysqldb_1.3.7-1build2_amd64.deb
Size: 39228
MD5sum: 6784c53060ee43e5852bb589f9d936e7
SHA1: eb9f7a89f7daaa16ddb5766346633bceb4c0e27d
SHA256: be43b1f08e4196903c71e689d6cd2e3ef2390b1daacd1aa706fdceea503f4fc3
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 3.x versions supported in Debian.
Description-md5: ef94561a9d5a0ef91971efb133cb764a
Homepage: https://pypi.python.org/pypi/mysqlclient
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 9m