#include #include #include #include #include #include int main(int argc, char** argv) { MYSQL* server; char *host; unsigned int port; int rval, iterations,i; clock_t begin,end; double baseline,test; if(argc < 6){ fprintf(stderr,"Usage: %s \n",argv[0]); return 1; } iterations = atoi(argv[1]); host = strdup(argv[2]); port = atoi(argv[3]); rval = 0; /**Testing direct connection to master*/ printf("Connecting to MySQL server through %s:%d.\n",host,port); begin = clock(); for(i = 0;i