Use ODBC to connect MySQL database in vc++6.0

Source: Internet
Author: User
Tags odbc mysql version zip mysql database

The following figure is the final effect of the program, including the display of data, add, modify, delete the common functions of these database operations.

My debugging environment is Xp,mysql version is mysql4.0.23

1. Install MySQL-driven ODBC

Downloading drivers from http://www.mysql.com

Address: Http://dev.mysql.com/downloads/connector/odbc/3.51.html#win32

I am a download of Windows Zip/setup.exe

After downloading to this machine, extract the Setup.exe file from the zip package, double-click the installation, nothing to say, complete the fool-type installation

2. Set up an ODBC data source

There are two ways to configure MySQL's ODBC data source

First: Manual setting

It's a bit of a hassle, but it's a safer approach.

The steps are as follows:

Start-> Control Panel-> management tools-> Data Source (ODBC), and then double-click the Data Source (ODBC) to come up with the following interface

Clicking the "Add" button in the upper-right corner will show the following interface

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.