1.ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0Tcpwarpper阻挡了,编辑/etc/hosts.allow,加上这两行...
分类:
数据库 时间:
2015-05-20 00:19:07
阅读次数:
199
直接来例子
$ cat datafile
northwest NW Joel Craig 3.0 .98 3
4
western WE Sharon Kelly 5.3 .97 5
23
southwest SW Chris Foster 2.7 .8 2
18
southern SO ...
分类:
其他好文 时间:
2015-05-19 22:50:45
阅读次数:
225
还是按照惯例,直接上例子。
$ awk 'BEGIN{"date" | getline d; print d}' datafile
Mon Jan 15 11:24:24 PST 2015
说明:将Linux的date命令通过管道传给getline函数,结果保存在变量d中并打印出来。
范例
$ awk 'BEGIN{"date" | getline d; sp...
分类:
其他好文 时间:
2015-05-19 10:50:09
阅读次数:
180
直接举个例子来说明
code lang="powershell">
$ cat datafile
northwest NW Joel Craig 3.0 .98 3
4
western WE Sharon Kelly 5.3 .97 5
23
southwest SW Chris Foster 2.7 .8...
分类:
其他好文 时间:
2015-05-18 09:11:29
阅读次数:
133
对oracle datafile header进行转储...
分类:
数据库 时间:
2015-05-16 21:58:28
阅读次数:
174
从control file 和 datafile header上获得不同的scn信息...
分类:
其他好文 时间:
2015-05-16 21:55:00
阅读次数:
231
--Oracle数据库创建表空间 create tablespace new_taspace--表空间名DATAFILE 'D:\NEWTABLESPACE.DBF' --表空间关联的数据文件和位置size 200M --文件初始大小 autoextend on next 20MB MAXSIZE ...
分类:
数据库 时间:
2015-05-15 22:48:49
阅读次数:
190
Lost connection to MySQL server at 'reading authorization packet',看到这个错误提示,第一想到是客户端连接不上,服务端本地是否能连接。经验证,服务端本地是可以连接的,这就松了口气,一方面有很多任务是跑在Mysql服务端的,如果本地无法连接,会造成大部分程序阻塞;
另一方面,服务端可以连接,那就可以进行相关的查问题。
用show processlist查看连接的时候,发现连接数并不多,此时并发不高,不是并发的问题,但是有个值,很显眼:
...
分类:
数据库 时间:
2015-05-15 21:35:24
阅读次数:
370
当非system的datafile 无法写入时,控制db instance crash 还是 datafile offline的 参数...
分类:
数据库 时间:
2015-05-15 20:00:17
阅读次数:
248
题目传送:Lost Cows
思路:线段树,从后往前扫描,如果当前数字为n,则表示它是剩余的序列中(包括他自己)顺序后的第n+1个数。找到后删除,借助线段树可以达到快速删除的效果
AC代码:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#in...
分类:
其他好文 时间:
2015-05-13 10:33:48
阅读次数:
116