0

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!

  • 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 Answers2

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
0

You can find a good MySQL tutorial here: MySQL C API programming tutorial

Here is the official documentation:

  1. 20.6.6 C API Function Overview
  2. 20.6.3 Example C API Client Programs
syntagma
  • 23,346
  • 16
  • 78
  • 134