Back to Browse

1: Connect Python to MySQL with XAMPP | Full Step-by-Step Tutorial for Beginners

1.7K views
Jun 26, 2025
12:12

In this beginner-friendly tutorial, I’ll show you how to download MySQL and connect Python to a MySQL database using XAMPP. This is a key step for building real-time dashboards, running data analysis, or creating full applications using your local database. *What You’ll Learn* : • Install and run MySQL using XAMPP • Create a MySQL database using phpMyAdmin • Write a simple Python script to connect to MySQL *Download code here* : https://github.com/data-geek-lab/connect-python-to-mysql-xampp ✅ Perfect for data analysts, developers, or students learning Python and SQL. 📦 Tools: Python, MySQL, XAMPP, mysql-connector-python 📺 Coming up next: Build a real-time dashboard using Streamlit + MySQL! ============================== *Support my channel* 🔔 *Don’t forget to LIKE & SUBSCRIBE for more Python & Data Analysis tutorials!* ☕ *Want to Buy Me A Coffee:* https://buymeacoffee.com/datageekismyname Or 💎 *Donate on PayPal* : https://www.paypal.com/donate/?hosted_button_id=ZCL24X55R9C5G ===== *Continue your learning* ========* If you’re learning Python for data analytics and want a structured guide, I put everything into a book with real examples. 📘 *Python for Data Cleaning* → 👉 https://a.co/d/iiMzQQH ⏳ *Timestamps* ⏳ 00:00 Intro & what we will cover in this video 00:20 Start the download XAMPP Apache process 02:32 Start control panel to run MySQL 03:55 A walk-through of the buttons in the XAMPP Control Panel 04:34 Open phpMyAdmin from browser 05:11 Create a Test database in phpMyAdmin 06:47 Connecting Python to MySQL using a simple test script 07:45 Open Visual Studio (VS Code). 10:52 Open Terminal in VS Code to run Python code. 11:33 Done! Ending statement. Disclaimer: This content is for educational purposes only. Affiliate links may be included, and I may earn a small commission at no extra cost to you. Thank you for supporting the channel!

Download

0 formats

No download links available.

1: Connect Python to MySQL with XAMPP | Full Step-by-Step Tutorial for Beginners | NatokHD