1,找到安装mysql的位置 输入cmd:进入mysql bin安装目录 如:D:\Program Files\MySQL\MySQL Server 5.5\bin>mysqld --skip-grant-tables 执行如上命令:这个cmd窗口就暂时不动2.重新打开一个新的命令窗体 输入cmd进...
分类:
数据库 时间:
2014-12-14 00:30:38
阅读次数:
298
//传入要查询的字段,查询条件(例如根据姓名查看数据的数据筛选),排序参数,页码,信息条数 //T:要操作的类型 //Tkey:根据什么类型来排 //Skip:跳过多少条 //Take:获得多少条 //Total:返回的信息总数 ...
分类:
Web程序 时间:
2014-12-11 13:57:27
阅读次数:
191
Query Admin System Administration Tips, Security, Internet Skip to content Home About Me 500 Million hits/day with Nginx + PHP-FPM + MySQL I have recently registered to blitz.io, a very interested ...
分类:
Web程序 时间:
2014-12-09 14:09:00
阅读次数:
430
使用MongoDB需要对文档结构进行合理的设计,以满足某些特定需求。比如随机选取文档,使用skip跳过随机个文档就没有在文档中加个随机键,
然后使用某个随机数对文档进行查询高效,随机键还能添加索引,效率更高。合理选择,合理设计。import java.net.UnknownHostException;
import java.util.Date;
import java.util.List;
...
分类:
数据库 时间:
2014-12-08 12:25:58
阅读次数:
269
1.关闭正在运行的MySQL
2.启动MySQL的安全模式,命令如下:
mysqld --skip-grant-tables
or
mysqld-nd --skip-grant-tables
3.使用root用户[免密码]登陆MySQL
mysql -u root -p
输入密码时,直接回车
4.选择MySQL系统库
use mysql
5.查看当前系统用户...
分类:
数据库 时间:
2014-12-04 18:06:35
阅读次数:
176
1. 检查my.cnf,看看有没有密码......靠这也算一条啊2. 如果能够重启,首先使用–skip-grant-tables参数重启,然后改密码,再去掉–skip-grant-tables参数重启, 注意–skip-grant-tables的安全问题http://code.openark.org...
分类:
数据库 时间:
2014-11-28 17:44:58
阅读次数:
198
前提:你已经有了一定的Spring基础
你已经可以跑动一个简单的Spring batch 的实例
参考:Spring-Batch-In-Action
参考:http://www.cnblogs.com/gulvzhe/archive/2011/10/25/2224249.html
先盗几个图
JobLauncher
指定一个
JobRepository
JobLauncher 指定一...
分类:
编程语言 时间:
2014-11-26 21:05:13
阅读次数:
379
工作随笔1 // LinQ 分页2 listsearch = listsearch.Take(pageSize * pageIndex).Skip(pageSize * (pageIndex - 1)).ToList(); 1 //LinQ 按列去重 2 listDistinct = list.Di...
分类:
其他好文 时间:
2014-11-26 16:08:16
阅读次数:
208
ORDER BY Clauses
In general, the optimizer will skip the sort procedure for the ORDER BY clause if it sees that the rows
will be in order anyway. But let's examine some exceptional situations.
Fo...
分类:
数据库 时间:
2014-11-26 11:19:42
阅读次数:
229
启动mysql_safe时传递两个参数:
--skip-grant-tables 跳过授权表
--skip-networking 为了安全,防止网络登录
萌萌的it人
登录方式一:
修改/etc/init.d/mysql
分类:
数据库 时间:
2014-11-24 19:05:10
阅读次数:
318