原创 關於配置文件

           一    時間 "/usr/sbin/ntpdate  + ip")   校驗本地時間,ip是網絡上時間服務器  + "; /sbin/hwclock -w"  有系統時間和硬件時間,把-w系統時間同步到硬件時間 S

原创 添加虛擬網卡

Linux添加虛擬網卡的多種方法 有時候,一臺服務器需要設置多個ip,但又不想添加多塊網卡,那就需要設置虛擬網卡.這裏介紹幾種方式在linux服務器上添加虛擬網卡.  我們向eth0中添加一塊虛擬網卡: 第一種方法:快遞創建\刪除

原创 gsoap 生成的wsdllocakt

由gsoap 生成的wsdl    在<SOAP:address location=這個位置的ip  有可能localhost 這樣當部soapUI調用時 就會產生調用拒絕的問題類似這樣n: Connection to http://lo

原创 mysql 性能2

MYSQL調試工具以及輔助工具   sysbench,pt-diskstats,gunplot gnuplot :plot "wenjianming" using 5(行數) w lines title “名字” mysql 採用AU

原创 xml初級操作

IBM的XML   Parser,用c++語言寫就,功能超級強大。號稱支持多達100種字符編碼,能夠支持中文, 適合於大規模的xml應用。若只是很小範圍的應用,則非最佳選擇,畢竟,你需要“揹負”約12M左右的 dll的沉重負擔。

原创 mysql 初級操作

添加遠程用戶admin密碼爲password  grant all privileges on *.* to admin@localhost identified by 'password' with grant option  gra

原创 歸併排序

int* divide(int *data,int size)   4 {   5     int *left =NULL,*right=NULL;

原创 mysql 性能

1 單條語句運行時間查詢 使用SQL_NO_CACHA 查詢不使用緩存,結果也存不進緩存。 set profiling=1;運行語句, 然後show profiles 2.多進程 insert into 語句丟失  1. 使用inse

原创 myql 安裝

shell> groupadd mysql shell> useradd -r -g mysql -s /bin/false mysql shell> cd /usr/local shell> tar zxvf /path/to/mys

原创 2分查找

#define LEN 10 int search(int *,int,int,int);  int main() {                  int buf[LEN] =  {1,2,3,4,5,6,7,8,9,10};  1

原创 測試語句運行時間

100W數據查詢 ,下面的程序   有鍵:select confid from testtime where confid=294142697 ;  時間:0.02sec   無鍵:select confid from testtime

原创 mysql 問題集合

問:字段設置不可爲空,插入時報錯Field 'Grade' doesn't have a default value; 答 1、打開my.ini,查找 sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CRE

原创 mysql 初級操作2 表的刪除與數據遷移

select concat('drop', table_name, ';') from infotmation_schema.tables where information_schema = 'table_name' mysql查

原创 快速排序

void quick(int *data ,int begin,int end); int find_mid(int *data, int i, int j, int k); int exchange(int *data, int a,

原创 插入排序

int insert(int *data, int size);s int main() {         int buf[10]= {345,12,54,7,13,4,78,0,43,450};         insert(buf,