org.gjt.mm.mysql.Driver是第三方的,口碑很好,开放源码。

解决方案 »

  1.   

    Different packages implement the same Interfaces.
      

  2.   

    呵呵,偶也想知道这个问题,帮你顶顶吧
    我常用的是com.mysql.jdbc.Driver这个驱动
      

  3.   

    我发现了,在Mysql只带的JDBC驱动中实现org.gjt.mm.mysql.Driver的类,但是只是简单的继承了com.mysql.jdbc.Driver。下面是源代码。
    /*
       Copyright (C) 2002 MySQL AB
       
          This program is free software; you can redistribute it and/or modify
          it under the terms of the GNU General Public License as published by
          the Free Software Foundation; either version 2 of the License, or
          (at your option) any later version.
       
          This program is distributed in the hope that it will be useful,
          but WITHOUT ANY WARRANTY; without even the implied warranty of
          MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
          GNU General Public License for more details.
       
          You should have received a copy of the GNU General Public License
          along with this program; if not, write to the Free Software
          Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
          
     */
    package org.gjt.mm.mysql;import java.sql.SQLException;
    /**
     * Here for backwards compatibility with MM.MySQL
     * 
     * @author Mark Matthews
     */
    public class Driver
        extends com.mysql.jdbc.Driver {
            
        /**
         * Creates a new instance of Driver
         * 
         * @throws SQLException if a database error occurs.
         */
        public Driver()
               throws SQLException {
            super();
        }
    }