2021-10-19
2762
#python
Ekekenta Odionyenfe
72711
Oct 19, 2021 ⋅ 9 min read

Server-side rendering with FastAPI and MySQL

Ekekenta Odionyenfe I am a software engineer and technical writer who is proficient in server-side scripting and database setup.

Recent posts:

Will AI Take Developers’ Jobs?

Will AI take developers’ jobs?

Explore AI’s impact in software development, its limitations, and how developers can stay competitive in the AI-driven industry.

Frank Joseph
Mar 20, 2025 ⋅ 5 min read
top ten react native chart libraries

The top 10 React Native charts libraries for 2025

Looking for the best React Native chart library? Explore the top 10 options, compare performance, and find the right tool for your project.

Aman Mittal
Mar 19, 2025 ⋅ 7 min read
bash vs zsh

Bash vs. Zsh: Key differences and when to use each

Compare the Bash vs. Zsh shell command languages, explore their differences, and see how to use both successfully.

Wisdom Ekpotu
Mar 19, 2025 ⋅ 9 min read

How to use the Swiper.js slider library

Learn how to use Swiper, a powerful JavaScript slider library, to create responsive, interactive, and smooth UI experiences for websites.

Jude Miracle
Mar 18, 2025 ⋅ 14 min read
View all posts

3 Replies to "Server-side rendering with FastAPI and MySQL"

  1. Hi, thanks a tone for your super detailed tutorial!

    Unfortunately, When I start the uvicorn server, I cannot connect to mysql because of an error as following

    > sqlalchemy.exc.ProgrammingError: (mysql.connector.errors.ProgrammingError) 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO)

    Seems like I need to give my password in order to connect to mysql successfully.
    Can you help fixing this? Thanks a lot!

    1. It’s because you should use the password of your MySQL Sserver in the command : “root:password@localhost:3306/serversiderendering”

  2. I guess the pydantic class attribute are typed annotated not assigned. id: int not id = int. I might be wrong tho, im not a fast api guy.

Leave a Reply