January 2019
Beginner
318 pages
8h 23m
English
This section will cover MySQL database administration using Python. You already know Python has various modules for mysql database administration. So, we will learn about the MySQLdb module here. The mysqldb module is an interface for MySQL database server and is used to provide Python database API.
Let's learn how to install MySQL and a Python mysqldb package. For this, run the following command in your Terminal:
$ sudo apt install mysql-server
This command installs the MySQL server and various other packages. While installing the package, we are prompted to enter a password for the MySQL root account:
$ apt-cache search MySQLdb
Read now
Unlock full access