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

12

u/NotyrfriendO Aug 18 '22

I work in IT and one thing you have to learn real fast is how to ask for help. You have provided zero information on what is going on. Post your code, error messages, screenshots and whatever else you might seem fit.

5

u/pint Aug 18 '22

you literally provided no information

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

-6

u/Full-Way24 Aug 18 '22 edited Aug 18 '22

Sorry I have solved it.thank you

I have one more doubt . How to auto generate models from a existing database ?