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.