C#连接mysql 时报错'The given key was not present in the dictionary.'
原因是数据库的连接客串Character Set 值不能为大写.
例如:Character Set =UTF8 则就会起这种问题。
本文解决C#连接MySQL时报错'The given key was not present in the dictionary.'的问题,原因是数据库连接客串CharacterSet不能为大写。示例中使用了正确的大写设置解决了该错误。
C#连接mysql 时报错'The given key was not present in the dictionary.'
原因是数据库的连接客串Character Set 值不能为大写.
例如:Character Set =UTF8 则就会起这种问题。
1013
8196
11万+
1万+
2万+

被折叠的 条评论
为什么被折叠?
