摘要:
gcc -o test test.c -lmysqlclienthttp://developer.51cto.com/art/200609/32317.htm (about gcc)1、E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? :http://hi.baidu.com/remote 阅读全文
摘要:
c++ 连接mysql。#include “mysql.h”int main (){MYSQL conn;mysql_init(&conn);if (mysql_real_connect(&conn,"172.16.66.1","xaf","111111","bai",0,NULL,0){ cout<<"success!"<<endl;}else{ cerr<<"failed"<<endl; if (mysql_ 阅读全文