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行是什么
------解决方案--------------------
第一列好像有空值,检查一下。