使用MySQL 进行 CodeFirst 在 Context.Add的时候 , 抛出异常 The provider did not return a ProviderManifestToken string.
观察异常的 innerException : {"Variable 'character_set_client' can't be set to the value of 'ucs2'"}
发现无法设置 ucs2 ??? 好奇怪,这个是在MySQL的Configuration中 设置的,为什么无法设置为 ucs2?
无奈,只能打开 my.ini 更改 default-character-set=ucs2 变为 utf8
还有修改 character-set-server=ucs2 变为 utf8
然后重启mysql服务