Go C # uses MySQL records

Source: Internet
Author: User

(1) First need to download C # to access MySQL database of the ADO driver

http://dev.mysql.com/downloads/connector/

The version I downloaded is: mysql-connector-net-6.8.3.msi

(2) Installation mysql-connector-net

Install Mysql-connector-net-6.3.8.msi directly on the Windows operating system

The default is installed on the C drive: C:\Program files\mysql\

I don't know, WSM. My installation directory is somewhat different from the user's description, C:\Program files\mysql\mysql Installer for Windows

(3) Adding references in the project

MySql.Data.dll

(4) namespaces

Using Mysql.data;
Using MySql.Data.MySqlClient;

Usage Reference: http://www.cnblogs.com/youuuu/archive/2011/06/16/2082730.html

Test environment win7+vs2010+mysql5.6+ mysql-connector-net-6.8.3

Go C # uses MySQL records

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.