Problem Description
Unfortunately YY gets ill, but he does not want to go to hospital. His girlfriend LMY gives him N kinds of medicine, which may be helpful. It is not a good idea to take all of t...
分类:
其他好文 时间:
2014-10-07 13:51:33
阅读次数:
217
large skip 在为数据分页时,一般要skip多少记录并limit多少记录,例如在MySQL中: SELECT * FROM large_table ORDER BY `id` LIMIT 10000, 30 这个过程是很慢的,因为数据库需要从第一个记录开始扫描到第10000个...
分类:
数据库 时间:
2014-10-04 07:22:16
阅读次数:
258
一、启动命令行,输入:taskkill /f /im mysqld.exe //关闭mysql 二、转入mysql的bin目录下 三、输入:mysqld --skip-grant-tables // 跳过密码检测 四、原窗口不关闭,新打开一个,转入mysql的bin目录下五、输入:...
分类:
数据库 时间:
2014-10-02 02:09:51
阅读次数:
282
阻塞队列:
1)BlockingQueue该接口提供了:
add()/remove() 如果当队列没有数据,从队列中取数据;或者队列中数据已满,
向队列中添加数据;则会抛出异常.
put()/take() 如果当队列没有数据,从队列中取数据;或者队列中数据已满,
向队列中添加数据;则会形成阻塞.
offer()/poll() 会给调用者返回特殊的值,开发者可以通过这些值做相应的处理
...
分类:
编程语言 时间:
2014-09-29 20:43:13
阅读次数:
297
ConductingInterviewis not cheap and costs both time and money to a company. It take a lot of time to find the right candidate for a job from 100s resu...
分类:
其他好文 时间:
2014-09-29 12:25:37
阅读次数:
294
不重启修改mysql root密码--------------------2014/09/28一、一般忘记密码的解决办法,需要重启Mysql1、skip-grant-tables我们常用的方法是使用skip-grant-tables选项,mysqld server启动之后并不使用权限系统(privi...
分类:
数据库 时间:
2014-09-28 19:13:53
阅读次数:
248
搭建mysql主从服务器://注:注释掉my.cn文件中的skip-federated字段[root@localhost]#/bin/cp-r/usr/local/mysql/share/mysql/my-huge.cnf/etc/my.cnf配置主服务器:修改my.cnf文件server-id=1//每个数据库服务器都要指定唯一一个server-idlog-bin=mysql-bin//mysql进行主从复..
分类:
数据库 时间:
2014-09-26 01:20:09
阅读次数:
327
/usr/local/mysql/bin/mysqld_safe --skip-grant-tables & mysql> use mysql;mysql> update user set password=PASSWORD("root") where user='root';service...
分类:
其他好文 时间:
2014-09-25 13:02:48
阅读次数:
191
string djbh="";var data = db.z_ygzz.OrderByDescending(zz => zz.ygzzid).Take(1); djbh = data.Select(d => d.djbh).FirstOrDefault(...
分类:
其他好文 时间:
2014-09-25 12:31:38
阅读次数:
198
常识,之前有的没搞清楚,导致写代码时不少疑惑。
比较典型的同步例子,用了两个Condition,notEmpty和notFull,分别对应两个lock,takeLock和putLock。查看take的代码:
E x;
int c = -1;
final AtomicInteger count = this.count;
final AtomicInteger takeLock = thi...
分类:
数据库 时间:
2014-09-21 01:53:59
阅读次数:
533