Python MySQL Connectivity
Python MySQL Connectivity
am-vanchar l
STUDENT
having fields-Roll- it
connector
Step-1 import
:
mysql
as
myconn
db connect chost="local host's =root", panword
Step 2 :
mycom- X
=
user
IS
,
=root"
Database/connec-on object)
I
Step 3 :
db-cursor ()
mycursor
=
↓
cursor
object
that executes
cobject sal code and
any
takes
output if any
Step 1 : 21 : CREATE DATABASE SCHOOL
Step 5 :
execute (as)
my
cursor
·
mark int,
Stream Varchar (1) "
execute (93)
my
cursor
.
S-s db commit ()
->
.
S 7 db
- close()
permanently
-
save whatever
activity
done
orchange
aubase .