时间:2021-07-01 10:21:17 帮助过:12人阅读
把linan1类型改成utf8
set character_set_database=utf8;
ps:这一步我感觉关系不大?不过网上都说让改,我没改好像也没问题
ef连接字符串修改:
Data Source=localhost;port=3306;Initial Catalog=UserControl;user id=root;password=123456;Character Set=utf8;
最后一步,困扰了我半天才发现,把列的类型也改成utf8
EF连接mysql中文乱码,显示????
标签:source roo ble png alt nbsp catalog var character