How to access mysql database using C
-
i want to access mysql database using C , i read the documentation which is there on mysql site , but where to get the required files like mysql.h and ,lib files. My MySql database is on linux machine and i want to access it from Windows machine. My program which is accessig the mysql data is written in c and is on Windows platform.I have already installed the required mysql driver, but to use the mysql API's i require mysql.h file . Do i require any other files for that, if so please let me this in detail. Suvarna
-
i want to access mysql database using C , i read the documentation which is there on mysql site , but where to get the required files like mysql.h and ,lib files. My MySql database is on linux machine and i want to access it from Windows machine. My program which is accessig the mysql data is written in c and is on Windows platform.I have already installed the required mysql driver, but to use the mysql API's i require mysql.h file . Do i require any other files for that, if so please let me this in detail. Suvarna
You can access mysql through ODBC and you wont need the mysql.h file. You find the mysql odbc in the mysql site. Install it on your windows machine and then make a connector in the windows odbc. Then you connect to the linux mysql from you program through the odbc connector. ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.