Visual studio 2015 connect with mysql

Visual Studio 2015 Community connects to MySQL , the steps are very simple, but it looks like a face when I just got it.

A course was opened this semester. The teacher taught visual studio 2010 to develop .net, but I used visual studio 2015 to develop when I installed it at home. Use both.

Suddenly the teacher taught the connection to the sql database. Visual studio and sql server were originally from the same family, and it is also good to use in the computer room, but when I got home, I found that I didn't have a sql server installed in my home. I found that Tamar was a pit. , sql server is not safe and I have been using open source mysql.

My computer doesn't have a place anymore, I just wanted to connect with mysql and visual, and found that this is also a pit.

However, considering that MySQL is installed on the server, there is no need to import and configure the database every time when developing the same project at home and in the computer room. Here's the start:

First, I googled and people said that it can be done like this

But mine is like this

Good pit, I checked a lot to find out, this needs to be configured

Second, I saw such an article

https://www.cnblogs.com/0to9/p/5746061.html

 

Nima, when I downloaded it, I found the URL of the first MySQL for Visual Studio

You thought it was the one in the download circle, no, that bit is a suite, but fortunately, Lao Tzu's English is good, and after using Youdao, I found that I was right.

I searched again, this is the real download address. https://dev.mysql.com/downloads/windows/visualstudio/

Third, download the two files and prepare for work.

Fourth, install mysql-for-visual-studio

Fifth, install mysql-connector-net-8.0.11

 

Sixth, reopen visual studio 2015 and see what you expect

 

 Seventh, fill in the host, user name, password. I am using a local database here, and I will talk about the server later.

 

 connect

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324633374&siteId=291194637