How to Install python-mysqldb in Ubuntu 18.04



Install python-mysqldb by entering the following commands in the terminal:

sudo apt update
sudo apt install python-mysqldb

Description:

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.

Homepage: https://pypi.python.org/pypi/mysqlclient

Version: 1.3.10-1build1

Section: python