MCPcopy Create free account
hub / github.com/ActiveState/code / recipe-65235.py

File recipe-65235.py

recipes/Python/65235_Using_the_MySQLdb_interface/recipe-65235.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import MySQLdb
2
3# Create a connection object and create a cursor
4Con = MySQLdb.Connect(host="127.0.0.1", port=3306, user="joe", passwd="egf42" db="tst")

Callers

nothing calls this directly

Calls 5

ConnectMethod · 0.80
cursorMethod · 0.80
executeMethod · 0.45
fetchallMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected