随笔分类 -  Shell

Shell脚本
linux文件字符集转换
摘要:developer@2015:~$ locale -a 查看本地字符集developer@2015:~$ locale -m 查看所有支持的字符集file -i input.txt 查看文件字符集将文件从gb2312转为utf8iconv -f gb2312 -t utf8 input.txt -... 阅读全文
posted @ 2015-04-24 11:52 激战 阅读(1120) 评论(0) 推荐(0)
mysql备份脚本
摘要:配置之前查看是否含有这个配置项,mysql 5.0版本没有binlog_format配置项,启动的时候会报错mysql>show variables like 'bin%' ;Variable_namevaluebinlog_cache_size32768binlog_direct_non_tran... 阅读全文
posted @ 2015-03-16 16:26 激战 阅读(191) 评论(0) 推荐(0)