|
flask-appbuilder 报错,知道的大侠指点下:
SQLALCHEMY_DATABASE_URI='mysql+mysqlconnector://user:pwd@localhost/dbname'
#如果使用sqlite 就没问题
2019-03-26 21:43:27,152 INFO sqlalchemy.engine.base.Engine {'param_1': 14, 'param_2': 20, 'param_3': 1}
Was unable to import app Error: (mysql.connector.errors.ProgrammingError) 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'PRAGMA foreign_keys=ON' at line 1 (Background on this error at: http://sqlalche.me/e/f405)
|
|