Mongodb用户分为三种1、全局用户2、数据库对应用户3、只读用户查看所有的数据库>showdbs
admin0.078GB
book_blog0.078GB
local0.078GB
mydb0.078GB
newdb0.078GB
test0.078GB查看现有所有的有哪些用户,要切换到admin数据库中>useadmin
switchedtodbadmin
>db.system...
分类:
数据库 时间:
2014-07-23 21:23:26
阅读次数:
433
case:下面的一条sql语句,导致mysql实例内存暴涨: select * from tables where table_name not in(select table_name from partitions group by table_name having count(*)>1 )....
分类:
数据库 时间:
2014-07-23 20:46:05
阅读次数:
332
在12月11日新的有关DDD CQRS和Event Sourcing演讲:改变心态- 以更加面向对象视角看待业务领域建模中,作者以足球比赛football Match为案例说明传统编程方法和CQRS的区别。 CQRS作为DDD的最佳实践已经得到广泛承认...
分类:
其他好文 时间:
2014-07-23 18:14:46
阅读次数:
290
一. 常用查询:1. 查询一条数据:(多用于保存时判断db中是否已有当前数据,这里 is 精确匹配,模糊匹配 使用 regex...)public PageUrl getByUrl(String url) { return findOne(new Query(Criteria.wher...
分类:
数据库 时间:
2014-07-23 16:55:51
阅读次数:
301
DB21Data Sharing架构,高可用2DB2的对象主要有以下几类:database,storage group, Tablspace, indexspace, table,index3 系统组成:diroctory database, catalog database, work datab...
分类:
数据库 时间:
2014-07-23 16:53:41
阅读次数:
353
微软近期Open的职位:Job posting title: Senior Software Development EngineerLocation: China, BeijingDivision: Operations System Group Engineering Group Overvie...
分类:
其他好文 时间:
2014-07-23 15:12:56
阅读次数:
204
function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); ...
分类:
Web程序 时间:
2014-07-23 13:00:46
阅读次数:
204
var iswechat = (window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == 'micromessenger');var cloc = location.href.replace(/^#/, "").repl...
分类:
微信 时间:
2014-07-23 12:52:06
阅读次数:
4522
序号 名称 简介 代表作品 1 中影 (中国电影集团公司) 中国电影集团公司(英语:China Film Group Corporation),简称中影集团、CFGC,是中国大陆最具实力的电影公司,成立于1999年2月,是由原中国电影公司、北京电影制片厂、中国儿童电影制片厂、中国电影合作制片公司、中...
分类:
其他好文 时间:
2014-07-23 12:22:46
阅读次数:
305
MongoDB 安装步骤总结:1、解压目录到d盘 mongodb 2、安装目录的下新建文件mongo.config文件##store data heredbpath=D:\mongodb\data##all output go herelogpath=D:\mongodb\log\mongo.log...
分类:
数据库 时间:
2014-07-23 12:16:36
阅读次数:
518