摘要: mysqldump -h$host db_old -uroot -p$pass | mysql -h$host db_new -uroot -p$pass 管道符号,是unix一个很强大的功能,符号为一条竖线:"|"。用法: command 1 | command 2 他的功能是把第一个命令comm 阅读全文
posted @ 2019-02-20 17:22 bf378 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 命令行指定系统编码为:GBK,然后打印结果如上。 String.getBytes("编码1") // 将字符串由原来编码转为编码1的字节byte,此时如果将正确显示的话就需要将bytes在使用编码1进行解码为字符串才可以正确显示。 阅读全文
posted @ 2019-02-20 15:58 bf378 阅读(129) 评论(0) 推荐(0) 编辑