How to Create MySQL Database & Connection in Python | python Tutorials

How to Create MySQL Database & Connection in Python | python Tutorials

WsCube Tech

2 года назад

35,296 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Muhammad Waleed
Muhammad Waleed - 15.10.2023 14:46

here is the code for this video because little syntax has changed in the latest pymysql library: import pymysql as mq
# crating connection of file with the php my admin
my_obj=mq.connect(host='localhost', user='root', password='')
# cursor creation
cursor_obj=my_obj.cursor()

try:
db='create database School'
cursor_obj.execute(db)
print("DataBase Created")


except:
print("There is an error brother find the error ")

Ответить
Faisal Riaz
Faisal Riaz - 08.09.2023 17:39

dear i am learning from your well delivered lecture on python. dear will you please tell me if connection is not made then how to check the path

Ответить
Nginx Gaming
Nginx Gaming - 12.07.2023 10:04

The error shows "No module named PyMySQL but i installed pip Pymysql please help

Ответить
BATTLEGROUNDS MOBILE INDIA FAN
BATTLEGROUNDS MOBILE INDIA FAN - 25.05.2023 16:30

Mere pycharm se connect nhi ho rha h ..

Ответить
smile with goa queen megha
smile with goa queen megha - 11.03.2023 15:57

❣️❣️

Ответить
karuna dhamapurkar
karuna dhamapurkar - 08.03.2023 12:45

in xampp server mysql is not starting port is blocked. pl reply sir

Ответить
Praveen Kumar
Praveen Kumar - 06.01.2023 16:54

Sir connect nhi ho rha

Ответить
stretchers
stretchers - 02.01.2023 09:29

myobj=mq.connect() error

Ответить
stretchers
stretchers - 02.01.2023 09:28

Connection error

Ответить
ataullah khan
ataullah khan - 23.11.2022 03:38

was looking for... n found finally

Ответить
Irfan Khan
Irfan Khan - 21.10.2022 09:49

very informative video but i am so sad because like are very less this amazing video thank you so much sir ;

Ответить
GAURAV KUMAR
GAURAV KUMAR - 17.09.2022 14:48

Good evening sir

Ответить
happy life
happy life - 14.08.2022 12:51

Bro module error aa rha help plzz no module name likh rha

Ответить
RB Creation
RB Creation - 31.07.2022 10:13

import pymysql as mq
mysql = mq.connect(host="localhost", user="root", password="")

Ответить
Michael Bhai
Michael Bhai - 29.05.2022 10:29

Sir aap bhi galat pada dete hai

Ответить
VINEET GAUR
VINEET GAUR - 23.02.2022 13:18

Partially initialized module error

Ответить
Daily life's Hack
Daily life's Hack - 24.01.2022 18:26

Typeerro sir

Ответить
Prince Choudhary
Prince Choudhary - 01.09.2021 14:51

TypeError: __init__() takes 1 positional argument but 4 were given

Ответить
monti saini
monti saini - 01.09.2021 10:12

This error is show TypeError: __init__() takes 1 positional argument but 4 were given

Ответить
FunMoments
FunMoments - 26.08.2021 11:45

Sir nhi ho rha hai connection aapke jaisa same to same krne par bhi..

Ответить
Munna varma
Munna varma - 18.08.2021 14:32

Nice 💞💞💞💞💞💞💞💞💞💞💞👍👍👍👍👍👍👍👍👍👍👍👍👍🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

Ответить