abp mysql Failed executing DbCommand (0ms) [Parameters=[], CommandType=‘Text‘, CommandTimeout=‘30‘]

Problem situation:

An error occurs when running .DbMigrator

Solution:

Run at the terminal of the .EntityFrameworkCore project - dotnet ef database drop to delete the database and re-run .DbMigrator 


BookStore.EntityFrameworkCore> dotnet ef database drop

Build started. . .

Build succeeded.

Are you sure you want to drop the database 'BookStore' on server'(LocalDb)/NSSQLLocalDB'? (y/N)

y

Dropping database 'BookStore' on server '(LocalDb) \MSsQLLocalDB'.successfully dropped database 'BookStore" .

 

Guess you like

Origin blog.csdn.net/Ice1774/article/details/124759412