Procboy's BLog

计算机技术交流,大家都来聊聊看^_^

2006年11月2日 #

Resin+apache出的问题

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.


Apache/2.0.55 (Win32) Resin/3.0.17 Server at localhost Port 80         <<more

posted @ 2006-11-03 16:17 Procboy 阅读(811) | 评论 (0)编辑 收藏

Mysql GUI Tools

      现在的GUI tools好多啊!!!呵呵,当然Mysql也不逊色,今天用了一下,哇!好方便!!!很多的复杂操作不再要握们手动去操作了!!呵呵,还有Mysql 的UML工具哦!!呵呵!!!相信Mysql GUI tools绝对不逊色与其他 的第三方GUI tools!!下载地址:http://www.mysql.org/downloads/gui-tools/5.0.html
赶快去下载哦!!!手动设置编码好麻烦!!!备份/还原一键即可哦!!呵呵带着走也方便

posted @ 2006-11-02 22:51 Procboy 阅读(475) | 评论 (0)编辑 收藏

java和mysql处理中文问题

/*
忙了一下午,终于搞好了,我的mysql5.0是for windows
请先在my.ini这个文件里面吧default-character-set=gbk
再建库bo,表mo(id char(6))
*/
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class DbCon {
public static void main(String []argv)
{
 try
 {
  Class.forName("org.gjt.mm.mysql.Driver");
  System.out.println("Create Sucess!!");
  Connection con=DriverManager.getConnection("jdbc:mysql://localhost/bo?user=root&password=nihaoma&useUnicode=true&characterEncoding=GBK");
  System.out.println("Connect Sucess!!");
  //ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE
  Statement st=con.createStatement();
  ResultSet su=st.executeQuery("select * from mo");
  while (su!=null && su.next())
  {
   System.out.println(su.getString("id"));
  }
  st.execute("insert into mo values('人')");
  //System.out.print(ne);
  //System.out.println("end...");
 }
 catch(ClassNotFoundException e)
 {
 
 }
 catch(SQLException e)
 {
  
 }
 catch(Exception e)
 {
  
 }
}
}

posted @ 2006-11-02 21:02 Procboy 阅读(294) | 评论 (0)编辑 收藏