摘要:
入门级别入门级别:类似1,2,3,4,5这样的字符串#!/bin/bashvar="1,2,3,4,5"var=${var//,/ }for i in $var; do echo $i;done这样就能输出结果。浅入级别上面的例子,被分割的字符串不能有空格,比如:"1,2,3,4,9 8,3 ... 阅读全文
摘要:
昨天刚刚安装了MYSQL,玩着挺Happy的,今天就链接不上了,报错是:root用户没有权限翻阅了一些文章,看着不太方便,我简单归纳一下:一、添加账户账户是:test;密码是:123456insert into mysql.user(Host,User,Password,ssl_cipher,x50... 阅读全文
摘要:
今天配置Spring,遇到一个很奇葩的问题:Spring.xml的配置文件内容:测试出错:Tests in error: instanceSpring(com.qunar.studyspring.SpringTest): Line 1 in XML document from class pat... 阅读全文
摘要:
最近发现POSTGRESQL的一张表(下面统称为test表)达到67G大小,不得不进行重新分区,下面记录一下步骤:前言、查看数据表结构(表结构肯定是虚构的)CREATE TABLE test( id integer NOT NULL DEFAULT , logday character vary... 阅读全文
摘要:
昨天遇到了一个奇葩的问题,需要在WHERE条件里面添加正则表达式,抱着试试看的态度,查看了一下postgresql,发现确实可以支持正则,例如:select * from user where email ~ '^[A-H]' --匹配email地址以A-H开头的记录 select * from ... 阅读全文
摘要:
今天添加了发送邮件的功能,总结一下,供以后参考:1、直接使用管道发送邮件echo "hello,this is the content of mail.welcome to www.mzone.cc" | mail -s "Hello from mzone.cc by pipe" admin@qun... 阅读全文