PyMySQL can't connect to MySQL on localhost

后端 未结 8 1856
囚心锁ツ
囚心锁ツ 2020-11-28 08:26

I\'m trying to connect to MySQL on localhost using PyMySQL:

import pymysql
conn = pymysql.connect(db=\'base\', user=\'         


        
8条回答
  •  [愿得一人]
    2020-11-28 08:48

    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

提交回复
热议问题