Using mysql-installer-community in Photon

Source: Internet
Author: User
Tags microsoft sql server

Install first

To use SQL in C #, you have to install

Microsoft SQL Server Compact 4.0

: http://www.microsoft.com/zh-cn/download/details.aspx?id=17876

To reference in the project

Otherwise, the following error will be compiled

the requested. NET Framework Data Provider could not be found. may not be installed

And then we're going to C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config

Find this label <system.data>
<DbProviderFactories>

Then add the following code

<add name= "SqlClient data Provider" invariant= "System.Data.SqlClient" description= ". Net Framework Data Provider for SQL Server "Type=" System.Data.SqlClient.SqlClientFactory, System.Data, version=2.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089 "/>
<add name= "MySQL data Provider" invariant= "MySql.Data.MySqlClient" description= ". Net Framework Data Provider for MySQL "Type=" MySql.Data.MySqlClient.MySqlClientFactory, Mysql.data, version=5.0.2.0, Culture=neutral, Publickeytoken=c5687fc88969c44d "/>

Using mysql-installer-community in Photon

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.