前台js//加载数据表格 $("#tab_user").datagrid({ title:"用户表", iconCls:'icon-edit',//图标 url:"getAllUserInfo", fitColumns:"true", ...
分类:
其他好文 时间:
2014-06-25 14:00:30
阅读次数:
267
华声在线6月23日讯 去年以来,长沙检方共立案查办涉嫌贪污贿赂犯罪案件153件192人,涉嫌渎职侵权犯罪案件37件45人,其中大案171件,县处级以上领导干部27人。今日上午,长沙市人民检察院召开新闻发布会,公布了2013年以来全市查办的一系列典型职务犯罪案件,其中近七成线索来自群众举报。http:...
分类:
其他好文 时间:
2014-06-25 13:52:36
阅读次数:
128
因为公司用到了shiro,所以自己抽空写了个小例子,方便下次查阅:1.这是项目大致构架图(至于类的实际内容会在后面有贴出):2.数据结构说明:User:用户,包含 userName,passwordRole:角色,包含roleNamePermission:权限,包含premissionNameSec...
分类:
其他好文 时间:
2014-06-25 11:19:23
阅读次数:
1255
最近网站出现 User 数据库名称 has already more than 'max_user_connections' active connections 的报错,网站瘫痪。有必要研究下这个问题。max_user_connections 是 MySQL 用户连接数的最大值设置,整段语句的意思...
分类:
数据库 时间:
2014-06-25 11:06:23
阅读次数:
246
#!/bin/sh
user="seqkit"
myDomain="hyldap"
passwd="******"
echo-n"">./passwd.ldif
echo-n"">./group.ldif
foriin$user
do
echo"Startwriteuserinfotopasswd.ldifgroup.ldif"
grep"^${i}:"/etc/passwd>>./passwd.ldif
grep"^${i}:"/etc/group>>./group.l..
分类:
其他好文 时间:
2014-06-25 10:22:23
阅读次数:
583
MySql中添加用户,新建数据库,用户授权,删除用户,修改密码(注意每行后边都跟个;表示一个命令语句结束):1.新建用户 1.1 登录MYSQL: @>mysql -u root -p @>密码 1.2 创建用户: mysql> insert into mysql.user(Host,Us...
分类:
数据库 时间:
2014-06-25 09:10:42
阅读次数:
269
1、连接
SQL*Plus system/manager
2、显示当前连接用户
SQL> show user
3、查看系统拥有哪些用户
SQL> select * from all_users;
4、新建用户并授权
SQL> create user a identified by a;(...
分类:
数据库 时间:
2014-06-25 07:33:46
阅读次数:
365
今天用到了多个表之间的关系,另一个表中的一个字段要以第一个表的主键作为外键。
下面说两种方法,MyBatis+MySQL 返回插入记录的主键ID:
第一种:
insert into user(userName,password,comment)
values(#{userName},#{password},#{comment})
第二种:
SELECT LOGS_SEQ...
分类:
数据库 时间:
2014-06-25 07:13:38
阅读次数:
210
向python进军。。。。。。运行所需环境:python,MySQLdb贴下自己写的关于sql备份的python脚本:#!/usr/bin/envpythonimportMySQLdbimportosimporttimedataList=[]remoteAddr=‘xxxx‘user=‘root‘password=‘xxxx‘dbConnect=MySQLdb.connect(%s,%s,%s)%(remoteAddr,user,password)cu..
分类:
数据库 时间:
2014-06-25 06:24:30
阅读次数:
265
1.RequestContext和Context处理器views.pyfromdjango.httpimportHttpResponse
fromdjango.templateimportloader,Context
defview_1(request):
t=loader.get_template(‘app.html‘)
c=Context({
‘app‘:‘Myapp‘,
‘user‘:‘a‘,
‘ip_address‘:‘b‘,
‘message‘:‘Iamview1.‘
})
html=t...
分类:
其他好文 时间:
2014-06-25 06:13:22
阅读次数:
339