I need to add MYSQL to Visual studio 2008, and run a simple SQL may be an insert to verify everything is working. so this is what i did.
i got this part from a forum>>
go to control panel>administrative tools>odbc datasource
then on user dsn click add select Mysql odbc 3.51 driver then a window will open put localhost in it and if u have user name and password then fill it otherwise leave it blank.
after this if u goto drop down list u will find all databases just select one u wish to connect then save it remeber to put the name of odbc connection.
once done u can goto server explorer in visual studio click add connection
select odbc source then a window will appear ! you will see odbc connection name u created there just select it and press test connection if succeeded press ok u will see ur server there .
I thought everything was fine, and then went on to write the code, my code looks like this...
#include "stdafx.h"
#include <mysql.h>
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
I ended up having this error.
fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
Seems like i will have to add the mysql.h file some where and i am not sure if i have the mysql.h file with me. How to solve this?