I tried to change the nuget from sqlserver to mysql and followed the instruction on https://docs.abp.io/en/abp/latest/Entity-Framework-Core-MySQL But it have error on running, is it possible to switch from MSSQL to MySQL in DbMigrator project, so that I can init MySQL database?
2 Answer(s)
-
0
That document is about replacing provider for existing projects. If you follow that document properly, your project will work without any problem. Also you may prefer to create a project with requested provider instead of replacing it after creation.
You can use
--dbms <db-provider>
parameter while creating a new project in CLI.For example, creating project with MySQL will be like example below.
abp new BookStore --dbms mysql
It'll create a new project with MySQL provider, so you don't need to add or remove anything from your project.
-
0
By the way,
I tried to change the nuget from sqlserver to mysql and followed the instruction on https://docs.abp.io/en/abp/latest/Entity-Framework-Core-MySQL But it have error on running, is it possible to switch from MSSQL to MySQL in DbMigrator project, so that I can init MySQL database?
If you got an error, you should share the error with us, so we can understand what went wrong and we can suggest you a solution.