现在有一种假设,如果还有一种驱动程序也放在该目录中,比如旧版本的MYSQL驱动。
那么我们操作驱动的时候就有了两种选择了;
mysql-connector-java-3.1.10-bin.jar
mysql-connector-java-3.1.10-bin-g.jar
上面两个驱动有什么区别呢?他们的功能有什么不同?

解决方案 »

  1.   

    对了jdbc驱动的取名有什么规范吗?
    我可不可以把一下文件改名后放到真确的文件夹里面
    mysql-connector-java-3.1.10-bin.jar
    mysql-connector-java-3.1.10-bin-g.jar
    改为
    mysql.jar
    mysql_g.jar呢?
      

  2.   

    You should not use the "debug" build of the driver unless instructed do do so when reporting a problem or bug to MySQL AB, as it is not designed to be run in production environments, and will have adverse performance impact when used. The debug binary also depends on the Aspect/J runtime library, which is located in the src/lib/aspectjrt.jar file that comes with the Connector/J distribution.这段引自mysql-connector-java-3.1.10\docs\index.html。大概是说,****-g.jar是报告bug时使用,而在设计和生成环境中,不应该使用它,云云。