Visual Studio 2015 connecting to MySQL related issues

Source: Internet
Author: User
Tags mysql in mysql for visual studio connectionstrings



VS, using Server Explorer to connect to MySQL did not succeed. In accordance with the solution provided online, the relevant plugin has been installed:



1, the Control Panel, MySQL Connector Net 6.9.9 has been installed (the original installation version is 6.9.8, after the upgrade is installed as 6.9.9) and MySQL for Visual Studio 1.2.6 Edition.






According to the official MySQL note, these two versions are not a problem with each other: http://dev.mysql.com/doc/connector-net/en/connector-net-versions.html



2, using NuGet installed EntityFramework and Mysql.data, MySql.Data.Entity package:









3. Review the Web. config file after modification:






Once the above steps are complete, after you restart Visual Studio (and your computer), you will still not be able to select a data source connected to MySQL in VS:









Replacement method: (To be verified)
You do not have to use Server Explorer to write the connection string yourself in the configuration file.


<connectionStrings>    <addname="MySqlConnectionString"connectionString="Server=localhost;Database=test; Uid=root;Pwd=12345678"/></connectionStrings>


Visual Studio 2015 connecting to MySQL related issues


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.