I'm trying to connect to a MySQL database using Flask-SqlAlchemy, here's my parameter :
SQLALCHEMY_DATABASE_URI = 'mysql://root:[email protected]/database?charset=utf8'
But when I go to the url, I get this error :
AttributeError: 'tuple' object has no attribute 'drivername'
If I change the SQLALCHEMY_DATABASE_URI to sqlite:///db.sqlite, it works correctly.
What am I missing ?
Note: I also tried mysql+mysqldb://, without any luck.