Python for Engineers
Solve Problems by Coding Solutions
Blog Pages
Blog
Online Compiler
NumPy
Distributions
Self Learning
IDE
Online Tools
About
Database connection test to MySQL
#username of MySQL: root
#Password: root
#Hostname: localhost
# Database Name in MySQL: test
import mysql.connector
x = mysql.connector.connect(user='root', password='root',host='localhost',database='test')
x.close()
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment