r/FastAPI • • Aug 18 '22

Question unable to connect database

hi folks, I'm unable to connect to database(mariadb) and it's working fine out of the FastApi framework

0 Upvotes

4 comments sorted by

View all comments

2

u/quantum1eeps Aug 18 '22

The FastAPI documentation for this functionality is very clear. I’d check it out and come back with questions if you still have any. There are several steps for connecting to a db and you’ll probably want to familiarize yourself with Environmental Variables