VS Connect MySQL Error resolution

Source: Internet
Author: User
VS Connect MySQL Error resolution

First configure the following steps:

**-(1) Open the Options option under the Tools menu on the VC6.0 toolbar and select "Includefiles" in the "Show Directories for:" Drop-down list on the right side of the Directories tab. Then add the Include directory path to your local MySQL installation in the middle list box. (Mine is D:\Program files\mysql\mysql Server 5.0\include).
Settings in VS2010, in: Project-Properties-Configuration Properties-vc++ directory-Include directory
(2) in the "Show Directories for:" Drop-down list above, select "Library Files" and then add the Lib directory path where you installed MySQL locally. The Lib directory also has debug and opt two directories, it is recommended to choose Debug. (Mine is D:\Program files\mysql\mysql Server 5.0\lib\debug).
Settings in VS2010, in: Project-Properties-Configuration Properties-vc++ Directory-Library Directory
Or: Project-Properties-configuration Properties-connectors-General-Additional Library directories
(3) Add "Libmysql.lib" to "Project settings->link:object/library modules".
Settings in VS2010, in: Project-Properties-Configuration Properties-connector-Input-Additional dependencies * *

A lot of people are configured and will go wrong, here is the key
Project, properties, Configuration Manager
Active solution platform, dropdown new, a new check box appears, select X64 in the type select New platform.
So it should be solved.

Markdown how to use ....

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

VS Connect MySQL Error resolution

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.