Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CrispenGari/mysql-python

Repository files navigation

MySQL Python

In this one we are going to learn how we can configure python to connect with mysql server.

Installing MSQL Connector

pip install mysql-connector-python

Testing the connection.

To test the connection create a python file and add the following code in it:

from mysql import connector
config ={
 'host': '127.0.0.1' or 'localhost',
 'user': 'root',
 'password': 'root',
 'database': 'todos',
 'port': 3306
}
conn = connector.connect(**config)
# closing the connection
conn.close()

Refs

  1. w3schools
  2. dev.mysql.com

About

🎨 this repository contains some mysql and python examples.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /