MyException - 我的异常网
当前位置:我的异常网» Java Web开发 » mysql连接有关问题

mysql连接有关问题

www.MyException.Cn  网友分享于:2013-12-31  浏览:26次
mysql连接问题
连接成功,但是会出现很多跟踪,怎么回事


dbc.ConnectionProperties$ConnectionProperty.getPropertyName(..)   returning   "logSlowQueries "
Wed   Jan   10   11:51:13   CST   2007   TRACE:             -->   ConnectionProperties.java:97   com.mysql.jdbc.ConnectionProperties$BooleanConnectionProperty.initializeFrom(null)
Wed   Jan   10   11:51:13   CST   2007   TRACE:             <--     ConnectionProperties.java:97   com.mysql.jdbc.ConnectionProperties$BooleanConnectionProperty.initializeFrom(..)   returning   null
Wed   Jan   10   11:51:13   CST   2007   TRACE:           <--     ConnectionProperties.java:199   com.mysql.jdbc.ConnectionProperties$ConnectionProperty.initializeFrom(..)   returning   null
Wed   Jan   10   11:51:13   CST   2007   TRACE:           -->   ConnectionProperties.java:199   com.mysql.jdbc.ConnectionProperties$ConnectionProperty.initializeFrom({profileSQL=false})
Wed   Jan   10   11:51:13   CST   2007   TRACE:             -->   ConnectionProperties.java:185   com.mysql.jdbc.ConnectionProperties$ConnectionProperty.getPropertyName()
Wed   Jan   10   11:51:13   CST   2007   TRACE:             <--     ConnectionProperties.java:185   com.mysql.jdbc.ConnectionProperties$ConnectionProperty.getPropertyName(..)   returning   "maintainTimeStats "
Wed   Jan   10   11:51:13   CST   2007   TRACE:             -->   ConnectionProperties.java:185   com.mysql.jdbc.Connect

连接代码如下

        try
        {
            Class.forName( "org.gjt.mm.mysql.Driver ").newInstance();
            Connection   con   =   DriverManager.getConnection( "jdbc:mysql://localhost/onixweb?user=root&password=123456&profileSQL=false ");
            Statement   sql   =   con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
            ResultSet   rs   =   sql.executeQuery( "select   *   from   jcm_ucar_maker ");
            while(rs.next())
            {
                name   =   rs.getString(1);
       
                System.out.println( "name:   "+   name);
            }
            con.close();
        }
        catch   (Exception   e)
        {
              e.printStackTrace();
        }
    }

------解决方案--------------------
是com.mysql.jdbc的提示
------解决方案--------------------
ConnectionProperties.java:97

这97行是什么
------解决方案--------------------

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有