Cant query or insert on mysql database using EF6

88 views Asked by At

Ive been working with a local MySQL database which has been working fine until we deployed to a server. The webapi was able to query and do any CRUD operations while the database was locally. Since it was deployed I got this error: "Can't create database ''; database exists". I can see it over the server explorer, see the data, I used codeFirst to create context and entities. Any ideas?

Thanks!

1

There are 1 answers

0
marsalal1014 On

As @AndrésRobinet said, I turned the db init off and seemed to do the trick for me. The other options mentioned were valid but not for my case. Thanks!