【原创】modb 功能设计之“支持部分MySQL客户端协议”-3
if(NULL=(mysql_real_connect(&mysql,"172.16.81.111","root","root","",0,NULL,0))){ fprintf(stderr,"%s:%s\n","MoDb",mysql_error(&mysql));exit(1);} if(mysql_query(&mysql,"show tables")){ fprintf(stderr,"Error:%s\n",mysql_error...