* MYSQL* mysql_real_connect(MYSQL* mysql, const char* host, const char* user,
const char* passwd, const char* db, uint port, const char* unix_socket, uint client_flag)
이런 구조를 가지고 있습니다..음....
다른 컴퓨터(IP 192.168.0.31이라고 가정)의 DB에 접근하고 싶을때...
connection = mysql_real_connect ( &test, "192.168.0.31", "test", "test", NULL, 3306, (char *)NULL, 0);
MYSQL connection = NULL, test; 로 선언하고....
if (connection == NULL)일떄 에러 메세지를 발생하게 하도록 하고 있는데 아래와 같은 에러가 나네요...