管理数据库 显示数据库列表 切换到其他数据库 创建数据库 MongoDB没有提供显式的创建数据库的MongoDB shell命令。数据库是在添加集合或用户时隐式地创建的。 可使用use database_name命令创建数据库。但只有添加了至少一个文档,才可真正创建完一个数据库。 删除数据库 在Mo ...
分类:
数据库 时间:
2019-03-26 18:19:58
阅读次数:
177
Given two sequences pushed and popped with distinct values, return true if and only if this could have been the result of a sequence of push and pop o ...
分类:
其他好文 时间:
2019-03-23 10:33:46
阅读次数:
233
Occurs just before the data is written to the record buffer. Write an OnValidate event handler to validate changes made to the data in the field, just ...
分类:
其他好文 时间:
2019-03-22 18:29:58
阅读次数:
114
一、案例一:自定义Session扫描器1、案例说明当一个Web应用创建的Session很多时,为了避免Session占用太多的内存,我们可以选择手动将这些内存中的session销毁,那么此时也可以借助监听器技术来实现。对于拿到 每个session 对象, 判断session的最后一次访问时间 与当前 ...
分类:
其他好文 时间:
2019-03-22 16:47:49
阅读次数:
117
using System.Text; using System.Text.RegularExpressions; namespace 落地页测试代码 { public class Validate { private static Regex RegNumber = new Regex("^[0-9... ...
解决Linux下普通用户无法使用root连接MySQL服务
分类:
数据库 时间:
2019-03-20 17:38:12
阅读次数:
246
应用目录结构: views.py serializers.py(自己创建的,管理序列化器使用) models.py urls.py 主路由,项目路由: ...
分类:
其他好文 时间:
2019-03-19 23:17:38
阅读次数:
182
一、问题描述 1、在安装MySQL8.0时,修改临时密码,因密码过于简单(如:123456),不符合MySQL密码规范,会触发一个报错信息: ERROR 1819 (HY000): Your password does not satisfy the current policy requireme ...
分类:
数据库 时间:
2019-03-19 21:32:35
阅读次数:
510
Evaluate and validate XPath/CSS selectors in Chrome Developer Tools Method 1 : From Elements panelUse the search function inside Elements panel to eva ...
分类:
Web程序 时间:
2019-03-19 13:42:19
阅读次数:
389
恢复内容开始 1.HTML标签中的float属性 在查了好的资料都不能一下就让你想float到底是干嘛的?其实很简单, 参考文章:http://www.w3school.com.cn/css/css_positioning_floating.asp 2.Django的forms如何给input加属性 ...
分类:
其他好文 时间:
2019-03-18 11:40:15
阅读次数:
145