How to Connect Django to XAMPP MySQL in Windows Easily

preview_player
Показать описание
In this post, we'll learn how we can connect Django to MySQL database in Windows. We have install XAMPP and our MySQL database will be turned on through XAMPP. It is possible to install standalone MySQL and run in without XAMPP, and we can connect to it using Django. But in this tutorial we will be using XAMPP to start our MySQL server and see how we can connect to it using Django.

This is an In Depth tutorial and we will also be installing creating Python virtual environment and installing Django in the virtual environment. If you directly want to the library installation required for connection to mysql and django configuration, jump to the required chapter from timestamp below:

00:00 - Intro
00:45 - Creating Virtual Environment
02:24 - Installing Django
06:32 - Installing mysqlclient
08:10 - Migrating Django Models
08:30 - Running and verifying MySQL connection

Thank you for watching!
Рекомендации по теме