Challenge

Project 2

Q4

import mysql.connector

testdb=mysql.connector.connect(

database="Alumni",

host="localhost",

user="root",

port="3305",

password="login@123"

)

cursor=testdb.cursor()

cursor.execute("select * from College_B_SJ limit 1000;")

for x in cursor:

print(x)

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.