Entity Framework's Entity Data Wizard Crashes When Connecting to MySQL Database

后端 未结 5 2268
攒了一身酷
攒了一身酷 2021-02-11 22:46

I am attempting to create an Entity Data Model using the wizard to reverse engineer an existing MySQL database. I get to the Choose Your Data Connection page of the wizard, sele

5条回答
  •  后悔当初
    2021-02-11 23:40

    Out of sheer luck and chance, I happened upon the same error. I am using VS 2015 with Entity Framework 6 as well. The error also happened as I was attempting to create the model from the database using EF reverse engineering existing connection.

    The problem is that even though the data connection exists, and you can refresh it, somehow the connection is broken. Go to the Server Explorer panel on the left, then under Data Connections find your existing connection, and instead of checking it using refresh, right click it and choose Modify Connection.

    From here try testing the connection and pressing OK. You should get an error (for me it said 'Unable to connect to any of the specified MySQL hosts.')

提交回复
热议问题