I am trying to use C API to connect my C code to my SQL. I was wondering if anyone has any good beginner resources so I can get up to speed. All I am trying to do is just store data in tables I made in SQL. If it helps I am using MySQL on my Mac. Thank you!
Asked
Active
Viewed 635 times
0
-
Welcome to Stack Overflow. Please read the [About] page soon. This sort of question tends to get closed as 'too broad', or other reasons. Generally, questions work best when you can show some code and ask what is wrong with it, assuming you've made an honest attempt to solve a problem. – Jonathan Leffler Nov 25 '14 at 22:44
2 Answers
0
The link below has some simple example how to use C API to interact with MySQL.
http://dev.mysql.com/doc/refman/5.0/en/mysql-real-connect.html

Kaizhe Huang
- 990
- 5
- 11
-
Please try and link to the current version of the documentation (e.g. 5.6). – tadman Nov 25 '14 at 23:42
0
You can find a good MySQL tutorial here: MySQL C API programming tutorial
Here is the official documentation:

syntagma
- 23,346
- 16
- 78
- 134