在某些情况下,如果明知道查询结果只有一个,SQL语句中使用LIMIT 1会提高查询效率。例如下面的用户表(主键id,邮箱,密码):create table t_user(id int primary key auto_increment,email varchar(255),password var...
分类:
数据库 时间:
2014-07-11 22:15:52
阅读次数:
321
登录某台服务器的mysql时候总报错:mysql2/client.rb:58:in `connect': Access denied for user 'root'@'localhost' (using password: YES) (Mysql2::Error)解决方法: 在windows 下的解...
分类:
数据库 时间:
2014-07-11 21:04:14
阅读次数:
267
最近在研究登陆密码的加密,下边上具体代码,只是给出核心代码,具体的代码视业务而定吧,给位有什么问题或者意见请留言。加密方法用的是AES-128-CBC,BASE64用的是org.apache.commons.codec.binary.Base64JS代码:var password = "123456...
分类:
编程语言 时间:
2014-07-11 19:30:48
阅读次数:
606
关于局域网中共享文件无权限打开的解决方法: net use * /del 删除网络用户 net use \\IP地址 "password" /user:用户名
分类:
其他好文 时间:
2014-07-11 18:04:32
阅读次数:
188
一、生成一个含有一个私钥的keystore文件user@ae01:~$ keytool -genkey -keystore keystore -alias jetty-azkaban -keyalg RSAEnter keystore password: Re-enter new password:...
分类:
其他好文 时间:
2014-07-11 11:16:04
阅读次数:
329
用户管理mysql>use mysql;查看mysql> select host,user,password fromuser;创建mysql> create user zx_root IDENTIFIEDby 'xxxxx'; //identified by 会将纯文本密码加密作为散列值存储修改....
分类:
数据库 时间:
2014-07-11 10:43:34
阅读次数:
255
我的mysql安装在c:\mysql一、更改密码 第一种方式: 1、更改之前root没有密码的情况 c:\mysql\bin>mysqladmin -u root password "your password" 2、更改之前root有密码的情况,假如为123456 c:\mysq...
分类:
数据库 时间:
2014-07-11 10:38:29
阅读次数:
277
static void Main(string[] args) { const string UN = "admin"; const string PW = "123456"; string usename, password; int i=0; while (i 3) { Console....
分类:
其他好文 时间:
2014-07-09 13:42:30
阅读次数:
172
1. 登陆交换机:telnet 10.0.0.1
2. 输入用户名,密码:admin password
3. 切换到admin模式: admin start
4. 切换到zoneset编辑模式:zoning edit
5. 新建zone,例如新建四个zone:
SANbox (admin-zoning) #> zone create a-clu1
SANbox (admin-zoning) #> zone create a-clu1-2...
分类:
其他好文 时间:
2014-07-09 11:01:05
阅读次数:
209
上一篇文章我已经新建了一个SaAdmin的APP,现在开始在这APP下面来code1、修改setting.py的数据库连接:DATABASES={
‘default‘:{
‘ENGINE‘:‘django.db.backends.mysql‘,
‘NAME‘:‘QjshAdmin‘,
‘USER‘:‘root‘,
‘PASSWORD‘:‘lihuipeng‘,
‘HOST‘:‘localhost‘,
‘PORT‘:‘3306‘,
}
}新..
分类:
其他好文 时间:
2014-07-09 09:02:47
阅读次数:
276