Author Archive

[我的日志] 大烟

2015.9 24

罂粟 种植多少构成犯罪? [Read More…]

[Shell编程] SHELL中如何获得管道前面的命令的返回值

2015.9 1

To know the exit status of the elements of a pipeline

cmd1 | cmd2 | cmd3

bash

The exit codes are provided in the PIPESTATUS special array.

cmd [Read More…]

[Shell编程] awk 输出单引号双引号

2015.9 1

输出双引号 双引号中加反斜杠再加引号。

awk ‘{print “\””}’

输出单引号:双引号中加双单引号,中间再加 反斜杠和单引号

awk ‘{print ” ‘ \’ ‘ “}’ [Read More…]

[AMP] Mysql 导入导出csv

2015.8 28

导出csv

select * from test_info

into outfile ‘/tmp/test.csv’

fields terminated by ‘,’ optionally enclosed by ‘”‘ escaped by ‘”‘

lines terminated [Read More…]

[AMP] Mysql 字符集设置

2015.8 28

MySQL字符集设置

• 系统变量:

– character_set_server:默认的内部操作字符集

– character_set_client:客户端来源数据使用的字符集

– character_set_connection:连接层字符集

– character_set_ [Read More…]

[AMP] mysqlimport: Error: 13, Can’t get stat of

2015.8 27

[root@sun ~]# mysqlimport –fields-terminated-by=, –lines-terminated-by=\n ziliao ./a.csv

mysqlimport: Error: 13, Can’t get stat of ‘/var/lib/mysql [Read More…]

[我的日志] 小苹果

2015.8 18

[Read More…]

[我的日志] 路边不知名的花

2015.8 18

[Read More…]

[我的日志] 马蜂窝

2015.8 9

马蜂窝 [Read More…]

[我的日志] 弥河风情

2015.8 9

[Read More…]