SET old_passwords =0;UPDATE mysql.user SET Password =PASSWORD('testpass') WHERE User='testuser' limit 1;SELECT LENGTH(Password) FROM mysql.user WHERE ...
分类:
数据库 时间:
2014-11-19 20:04:18
阅读次数:
206
brew install cabal brew install ghc cabal update cabal install pandoc 替换bash zsh ??oh-my-zsh? ?powerline 把.zshrc拷贝到相应用户的home目录即可 (也可以把你的bash的配置文件(~/.bash_prorile或者~...
分类:
其他好文 时间:
2014-11-19 18:58:23
阅读次数:
210
最近使用CocoaPods来添加第三方类库,无论是执行pod install还是pod update都卡在了Analyzing dependencies不动原因在于当执行以上两个命令的时候会升级CocoaPods的spec仓库,加一个参数可以省略这一步,然后速度就会提升不少。加参数的命令如下:pod...
分类:
其他好文 时间:
2014-11-19 17:45:18
阅读次数:
243
如下对数据库中KPIID在hibenrnate中做了两个映射<propertyname="kpiId"type="java.lang.Integer"insert="false"update="false"><columnname="KPI_ID"><comment>KPIID</comment></column></property><many-to-onename="kpi"class="com.i..
分类:
数据库 时间:
2014-11-19 16:29:50
阅读次数:
291
代码中有一个较大的事务,需要做多次数据库的增删改等操作。其中一个新增操作我使用了公司封装的hibernate的entityDao;其它操作使用的是spring提供的jdbcTemplate。二者操作流程基本如下:entityDao.save(写入表1)jdbcTemplate.update(根据entityDao向表1写入的最新数据,更新..
分类:
数据库 时间:
2014-11-19 16:29:18
阅读次数:
258
使用svn update更新时候提示:svn: E155036: The working copy at 'xxx'is too old (format 29) to work with client version '1.8.9 (r1591380)' (expects format 31). Y...
分类:
其他好文 时间:
2014-11-19 13:56:09
阅读次数:
2913
ubuntu安装nginx时提示error: the HTTP rewrite module requires the PCRE library
需要安装pcre包。
sudo apt-get update
sudo apt-get install libpcre3 libpcre3-dev
你可能还需要安装
sudo apt-get install openssl libssl...
分类:
Web程序 时间:
2014-11-19 12:43:59
阅读次数:
180
UPDATE FROM update ? a ? set ? aa ? =(select ? bb ? from ? b ? where ? a.cc ? = ? b.cc) ? ? where ? exists ? (select ? b.cc ? from ? a.cc ? =b.cc)?? ? 1. 建立数据库DB2_GCB CRE...
分类:
数据库 时间:
2014-11-19 11:36:38
阅读次数:
290
经常出现一个问题,oracle的某张表突然无法更新了,无论是通过pl/sql Developer 还是通过sqlplus都无法更新,执行update语句或者执行select * from table_name for update 都一样,一直处于执行状态,无法完成,这时候我就猜想是不是session被锁死了呢?带着这个问题,我们写一条SQL语句:
--锁表查询SQLSELECT obj...
分类:
数据库 时间:
2014-11-19 11:12:36
阅读次数:
229
nginx出于性能考虑采用类似lib_event的方式,自己对时间进行了cache,用来减少对gettimeofday()的调用,因为一般来说服务器对时间的精度要求不是特别的高,不过如果需要比较精确的timer,nginx还提供了一个timer_resolution指令用来设置时间精度,具体的机制再后面会做介绍。在ngx_times.c中提供了ngx_time_update()函数来更新时间缓存,...
分类:
其他好文 时间:
2014-11-19 11:12:33
阅读次数:
126