ef+mysql配置

mysql授权数据库至某用户
grant all PRIVILEGES on db_name.* to ‘username’@‘xxx.xxx.xx.x’ identified by ‘password’ WITH GRANT OPTION;
flush privileges

需安装:
mysql-for-visualstudio-1.2.3
mysql-connector-net - 6.8.3

Install-Package EntityFramework -Version 6.0.0
Install-Package EntityFramework.zh-Hans -Version 6.0.0
Install-Package MySql.Data.Entity.EF6

MySql.Data.EntityFramework 8.0.22

allow reload config
add below config to providers ,this is imporant

rebuild solution

你可能感兴趣的:(mysql,C#,EntityFramework,mysql,数据库)