Open Closed

About DbMigrator Project #2217


User avatar
0
LawrenceKwan created

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)
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    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.

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    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.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11