Skip to content Skip to sidebar Skip to footer

Flask-sqlalchemy Pymysql - Access Denied Error

OS: RHEL Python Version: 3.6 SQLAlchemy Version: 1.1.10 PyMySQL Version: 0.7.11 MySQL Distrib: 5.7.17-13 import pymysql conn = pymysql.connect(host='localhost', port=3306, user='t

Solution 1:

I found the issue: The default auth plugin for MySQL 5.7 was sha256 which is not supported by PyMySQL. Changed it to mysql_native_password and that fixed the issue.


Post a Comment for "Flask-sqlalchemy Pymysql - Access Denied Error"