python中mysql.connector的连接类型JDBC / ODBC

问题描述

我对理解数据库连接类型感到困惑。 我正在使用下面的代码连接到MysqL数据库。如何识别MysqL.connector在python中建立的连接类型(JDBC / ODBC)。

import MysqL.connector
# connection configuration details available in MysqL_config 
from MysqL_config import *
conn_sp=MysqL.connector.connect(host=dsn,database=database,user=username,passwd=password,allow_local_infile=True)
conn_sp_cursor = conn_sp.cursor(buffered=True)

MysqL工作台中,我也使用服务器和登录凭据连接到MysqL DB。此连接是JDBC还是ODBC。

有人可以帮助我了解这些连接类型。在这里寻求帮助。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)