How to get the socket FD from MySQLdb connection
I开发者_如何学Go use MySQLdb to fetch data from mysql and I need the connected socket to do someting else。 Is there some way to get it ? Thanks !
From the documentation:
import MySQLdb
db=MySQLdb.connect(passwd="moonpie",db="thangs")
db is what you call your "connected socket"
精彩评论