ABP .NET CORE connection mysql

1, install mysql assembly, add the following assemblies in the project XXX.EntityFrameworkCore

pomelo.entityframeworkcore.mysql

pomelo.entityframeworkcore.mysql.design

 

2, modify XXX.EntityFrameworkCore directory configuration files, modify file DBContextConfiguer

 

 

3, modify the connection string to find the file in the Web.Host appsetting.json or Web.MVC and modify the connection string.

 "Default": "Server=xxx.xxx.xxx.xxx; Database=surrounddb;charset=utf8;uid=root;pwd=123456;"

 

Guess you like

Origin www.cnblogs.com/topguntopgun/p/12081572.html