Connect Flask Web Application With Mysql Database #6

preview_player
Показать описание
Join Free Programming Courses

My Affiliate Books:
Building REST APIs with Flask

Full Stack Web Development with Flask

Connect Flask Web Application With Mysql Database
This is the sixth video of Python Flask Web Development, in this video i want to show you how you can Connect
your Flask Application With Mysql Database, for this purpose we are using wamp server. if you dont have wamp server
you can download wamp server from thier website also fro connection in Flask Web we are using Flask-MySQLdb
so first you need to install that Python package using pip

installation
pip install Flask-MySQLdb

==============================================
Check The Blog For More Programming Tutorials
==============================================

Рекомендации по теме
Комментарии
Автор

Its 2024 and it still works. Thank you!!!!

Halovaren
Автор

An excellent video! To anyone doing their database for the first time, this video is highly recommended. Also to note, incase you have been writing a code for your PHP files and tried to refer to this video and still received internal server error, double check your ("SELECT * FROM user") part to make sure it is the same as the one in your DB. Mine was set to user_details so i was getting error 500 till i noticed the difference and changed it to ("SELECT * FROM user_details"). Boom it finally work thanks to this awesome youtuber for guiding how to write the necessary code to get this to work.

realpogo-ip
Автор

we can code just becuse of kind people like you. thx
Thank you so much for the clear explanation!.

TanveerInamdar
Автор

Thank you so much for the clear explanation!.
(to anyone who may concern - I first gave the database the name "flask" but it did not work. Then I changed the name and it worked! )

balasooriyaranul
Автор

i m getting ImportError: cannot import name 'flask_mysqldb' from 'flask_mysqldb'

yogeshpalegar
Автор

Which one you recommend between Flask and Django?

galoggob
Автор

Sir how do we store data into database through webpage.

raishwarya
Автор

Getting an error while executing pip install flask-mysqldb in the terminal...

girishnaik
Автор

how to store one of the id in your data ?
like i want to store the result which is at id 2, john and print it only ??

UmairAli
Автор

Hello how create connection file and connect with main flask file?

zangarkarabaev
Автор

Hi Parwiz,
Can you explain how to install and setup wamp server. Also, how to integrate with Flask-MySQLdb?

riteshgohil
Автор

My application is not accessing mysql database

kushaanshyampuria
Автор

Hi can we connect multiple dB's using this?

praveendp
Автор

hello sir how can we insert data to database by using textboxes

being_a_developer
Автор

Hello sir, i am getting NameError: name '_mysql' is not defined can you please help i am using MAC os

saiyyamd.chhetri
Автор

Hi Parwiz,
How to open phpMyadmin in here?

umairah
Автор

not working in my case don't know why

brianibrahim
Автор

Hello,
from flask_mysqldb import MySQL
import not working

ansarulmulla