110,566
社区成员
发帖
与我相关
我的任务
分享
string ConnectionStr = "server=localhost;port=3306;user Id=root;password=12345678; database=reservoirinfo ;Charset=utf8;Allow User Variables=True";
经验证,C#程序也可以插入中文名称到name字段。
总结: 关键原因是要删除原数据库和表,重新创建一个utf8数据库和表。