pyeve / eve-sqlalchemy

SQLAlchemy data layer for Eve-powered RESTful APIs
http://eve-sqlalchemy.readthedocs.io
Other
232 stars 70 forks source link

How to use eve-sqlalchemy with MySQL? #101

Closed daniel-dong closed 7 years ago

daniel-dong commented 8 years ago

I'd like to use eve-sqlalchemy with a MySQL database, but the documentation does not mention it.

LifenetsAndrew commented 8 years ago

@daniel-dong, I think this might help you: http://docs.sqlalchemy.org/en/rel_1_0/core/engines.html#mysql. eve-sqlalchemy has nothing to do with mysql, cause it's sqlalchemy's job.

ralphsmith80 commented 7 years ago

That link appears to be dead, but I ran into this and found this solution.

gist

pip install pymysql

then use

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