从C访问MySQL数据库 [英] Accessing MySQL database from C
问题描述
我是MySQL的新手.
I am very new to MySQL.
Linux.
我想在MySql中创建一个数据库,并使用C程序将数据从文本文件填充到数据库中.
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?
谢谢.
推荐答案
MySQL带有客户端库和ODBC连接器.客户端库记录在这里 http://dev.mysql .com/doc/refman/5.5/en/c-api-functions.html ,则ODBC库位于
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
这篇关于从C访问MySQL数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!