It is very easy to connect a MySQL database with a Python application, you can do this with the help of the MySQL connector package and execute your SQL queries right along with the Python application on Windows or ubuntu.
Best Programming Guides with Examples