您可以使用
connect_args:
db_connection = sqlalchemy.create_engine( 'mysql+mysqlconnector://user:pwd@hostname/db_name', connect_args={'auth_plugin': 'mysql_native_password'})
db_connection = sqlalchemy.create_engine( 'mysql+mysqlconnector://user:pwd@hostname/db_name?auth_plugin=mysql_native_password')
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)