4

I am very new to MySQL.

Linux.

I want to create a database in MySql and using a C program I would like to populate the data from a text file into the database.

I couldnt find much information on this :(

Is there any clear material on this? Can somebody please point me to the right direction?

Thanks.

4 Answers 4

2

MySQL comes with a client library and an ODBC connector. The client library is documented here http://dev.mysql.com/doc/refman/5.5/en/c-api-functions.html, the ODBC library is here http://dev.mysql.com/doc/refman/5.5/en/connector-odbc.html

Sign up to request clarification or add additional context in comments.

Comments

0

Google? This is the first entry I get by searching for "Accessing MySQL database from C": http://www.cyberciti.biz/tips/linux-unix-connect-mysql-c-api-program.html

2 Comments

Probably 99% of questions on SE sites can be answered by sufficient googling. Suggesting that as an answer is not helpful. The idea behind SO is to be better than Google for seeking answers to programming questions.
I disagree with your statement, and, anyway, I also provided a useful link.
0

There are quite a few good tutorials for this. Here are a couple resources.

Comments

-1

The C API library is distributed with MySQL and is the basis for most other language bindings. Everything you need should be in the MySQL manual:

http://dev.mysql.com/doc/refman/5.5/en/c.html

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.