📜  用于 python 烧瓶应用程序的 Mysql 驱动程序 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:31.457000             🧑  作者: Mango

代码示例1
If you're having issues compiling the binary extension, or on a platform where you cant, you can try using the pure python PyMySQL bindings.

Simply pip install pymysql and switch your SQLAlchemy URI to start like this:

SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://.....'