摘要:
写了一个很简单的测试数据库连接的程序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 阅读全文