Vs mysql connection error solution, vsmysql Solution

Source: Internet
Author: User

Vs mysql connection error solution, vsmysql Solution
Vs mysql connection error Solution

First, configure the following steps:

**-(1) Open the Options Option Under the Tools menu of the VC6.0 toolbar, and select "program defiles" from the "Show Directories for:" drop-down list on the right of the directories tab ", then add the include directory path for local MySQL installation to the list box in the middle. (My Files are D: \ Program Files \ MySQL Server 5.0 \ include ).
In vs2010, go to project-properties-configuration properties-VC ++ directory-including directory
(2) Select "Library files" in the "Show directories for:" drop-down list mentioned above, and then add the Lib directory path for local MySQL installation. The Lib directory contains two directories: debug and opt. We recommend that you select debug. (My Files are D: \ Program Files \ MySQL Server 5.0 \ lib \ debug ).
In vs2010, go to project-properties-configuration properties-VC ++ directory-library directory.
Or: Project-properties-configuration properties-connector-General-additional library directory
(3) Add "libmysql. lib" in "Project settings-> Link: Object/library modules ".
For settings in vs2010, go to: Project-properties-configuration properties-connector-input-additional dependencies **

Many people may encounter errors after configuration. The following are the key points:
Project> Properties> Configuration Manager
Active solution platform. select new from the drop-down list. A new check box is displayed. Select X64 from the shortcut menu.
This should solve the problem.

How to Use markdown ....

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.