arp_ignore:接收到arp请求时的响应级别级别0(默认):只要本地配置有相应地址就给予响应级别1:仅在请求的目标地址配置请求到达的接口上的时候,才给予响应配置方式:echo1>/proc/sys/net/ipv4/conf/eth0/arp_ignorearp_announce:定义将自己的地址向外通告时的通告级别级别..
分类:
其他好文 时间:
2014-10-06 01:03:49
阅读次数:
369
先修改Master的my.cnf配置在[mysqld]中新增以下内容log-bin=mysql-binlog-bin-index=mysql-bin.indexserver-id=1sync_binlog=1binlog_format=mixed然后指定要做同步的数据库,并忽略掉不需要做同步的数据库binlog-do-db=testdbbinlog-ignore-db=mysqlbinlog-ignore-db=performa..
分类:
数据库 时间:
2014-10-03 03:17:14
阅读次数:
359
对于批量插入: 1、在建立唯一索引的情况下,,从前往后,如果遇到索引重复错误 则停止插入(前面的插入成功),错误后面的即使正确也不会插入 方法1:insert igore 后 解决此问题 (ignore是指如果索引重复则不插入,这样即使记录中索引字段以外的值更新了也无法更新) ...
分类:
数据库 时间:
2014-10-01 14:23:51
阅读次数:
205
Win TortoiseSVN:鼠标右键-TortoiseSVN-Settings-General-Subversion-Golobal ignore patternWinSubversion:编辑C:\Users\{User}\AppData\Roaming\Subversion\config 文...
分类:
移动开发 时间:
2014-09-30 12:51:32
阅读次数:
276
If you accidentally added some files which should have been ignored, how do you get them out of version control without losing them? Maybe you have yo...
分类:
其他好文 时间:
2014-09-26 18:36:28
阅读次数:
141
建立mysql的复制node1:mysql>showmasterstatus;+------------------+----------+--------------+------------------+-------------------+|File|Position|Binlog_Do_DB|Binlog_Ignore_DB|Executed_Gtid_Set|+------------------+----------+--------------+----------------..
分类:
数据库 时间:
2014-09-26 00:19:18
阅读次数:
258
ignore_user_abort();//关掉浏览器,PHP脚本也可以继续执行.set_time_limit(0);// 通过set_time_limit(0)可以让程序无限制的执行下去$interval=60*30;// 每隔半小时运行do{ //这里是你要执行的代码 slee...
分类:
Web程序 时间:
2014-09-25 23:57:37
阅读次数:
224
mysql insert语法注意事项(ON DUPLICATE KEY UPDATE ) ? INSERT语法 INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] ? ? ? [INTO] tbl_name [(col_name,...)] ? ? ? VALUES ({expr | DEFAULT}...
分类:
数据库 时间:
2014-09-25 16:57:29
阅读次数:
289
1.递归删除指定目录下的 .git、.svn 文件 find . -name .git | xargs rm -fr find . -name .svn | xargs rm -rf 第一条倒还不常用,因为用 git 做版本管理的时候, 只在根目录下生成一个 .git 目录,删掉这一个就...
分类:
其他好文 时间:
2014-09-23 14:34:54
阅读次数:
252
我们常常导入数据!mysql有一个高效导入方法,那就是load data infile 下面来看案例说明基本语法:load data [low_priority] [local] infile 'file_name txt' [replace | ignore]into table tbl_nam....
分类:
数据库 时间:
2014-09-22 18:24:32
阅读次数:
362