I\'m trying to connect to MySQL on localhost using PyMySQL:
import pymysql conn = pymysql.connect(db=\'base\', user=\'
Those who are strugging to connect localhost MySQL from dockerised flask-sqlalchemy or using pymysql, pls look into this thread, very usefull How to connect locally hosted MySQL database with the docker container