摘要: 写了一个很简单的测试数据库连接的程序conn.c如下:#include <stdio.h>#include <stdlib.h>#include "/usr/local/mysql/include/mysql/mysql.h"#include <string.h>int main(int argc, char *argv[]){MYSQL my_connection;mysql_init(&my_connection);if (mysql_real_connect(&my_connection, "localho 阅读全文
posted @ 2013-04-06 22:47 瑞尼书苑 阅读(7325) 评论(0) 推荐(0) 编辑