北在北方

太白枝头看,花开不计年,杯中浮日月,楼外是青天。

导航

06 2013 档案

摘要:1、简单的配置<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mongo="http://www.springframework.org/schema/data/mongo" xsi:schemaLocation=& 阅读全文

posted @ 2013-06-18 15:10 CN.programmer.Luxh 阅读(1309) 评论(0) 推荐(0)

摘要:1、查看用户授权表select user,host,password from mysql.user; 2、给用户设置密码update mysql.user set password=PASSWORD('root') where user='root';flush privileges; 3、登录MySQL[root@h2 ~]# mysql -uroot -proot 4、在从服务器(192.168.0.130)上登录到主服务器(192.168.0.129)[root@h2 ~]# mysql -uroot -proot -h192.168.0.129ERRO 阅读全文

posted @ 2013-06-15 12:18 CN.programmer.Luxh 阅读(602) 评论(0) 推荐(0)

摘要:package cn.luxh.app;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;import java.nio.ByteBuffer;import java.nio.channels.FileChannel;import java.nio.charset.Charset;import org.junit.Test;public class NioTester { /** * 读取文件 * 获取通道;创建缓冲区;让通道将数据读到... 阅读全文

posted @ 2013-06-14 10:28 CN.programmer.Luxh 阅读(415) 评论(0) 推荐(0)