ModuleNotFoundError: No module named 'MySQLdb' Amazon MySQL RDS SQLAlchemy

后端 未结 3 344
清歌不尽
清歌不尽 2021-01-21 12:28

I am having issues with connecting Amazon AWS MySQL with SQLAlchemy. According to the instruction, I have connected.

app.config[\'SQLALCHEMY_DATABASE_URI\'] = \'         


        
3条回答
  •  太阳男子
    2021-01-21 12:48

    Above issues has been solved with the following:

    import pymysql
    
    pymysql.install_as_MySQLdb()
    

    Nothing to change anywhere.

提交回复
热议问题