pymysql module the pymysql module the pymysql module provides access to mysql database from python it implements the python db-api this module is pure python database interface implementation meaning that it is portable across different operating systemsthis is notable because some database interface modules are merely wrappers around other (nativeimplementations that may or may not be available on different operating systems for examplea native linux based database interface module may not be available for the windows operating system if you are never going to switch between different operating systemsthen this is not problem of course to use the pymysql module you will need to install it on your computer this will involve using tool such as anaconda or adding it to your pycharm project you can also use pip to install itpip install pymysql working with the pymysql module to use the pymysql module to access database you will need to follow these steps import the module make connection to the host machine running the database and to the database you are using obtain cursor object from the connection object execute some sql using the cursor execute(method (cspringer nature switzerland ag huntadvanced guide to python programmingundergraduate topics in computer science