You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Eirik Bakke (JIRA)" <ji...@apache.org> on 2018/04/17 00:30:00 UTC

[jira] [Created] (NETBEANS-673) Add support for MariaDB JDBC driver in Add Connection dialog

Eirik Bakke created NETBEANS-673:
------------------------------------

             Summary: Add support for MariaDB JDBC driver in Add Connection dialog
                 Key: NETBEANS-673
                 URL: https://issues.apache.org/jira/browse/NETBEANS-673
             Project: NetBeans
          Issue Type: Bug
          Components: db - Code
    Affects Versions: 9.0
            Reporter: Eirik Bakke


The "Add Connection" wizard does not currently recognize the MariaDB JDBC driver; this means that the "host", "port", and "database" fields do not end up being shown in the connection panel. Instead, the user has to manually construct the JDBC URL to insert this information.

The fix is simple; a new entry needs to be added in org.netbeans.modules.db.util.DriverListUtil , recognizing the driver class "org.mariadb.jdbc.Driver" (instead of "com.mysql.jdbc.Driver" for MySQL). The MariaDB driver uses the exact same format for its JDBC URLs as MySQL, except allows the protocol name "mariadb" to be used instead of "mysql".

(MariaDB and its driver aims to be completely compatible with MySQL--either driver can be used to connect to either database. The MariaDB JDBC driver is LGPL while MySQL's driver is GPL, however, making only the MariaDB one suitable for bundling with commercial software.)

See also https://issues.apache.org/jira/browse/NETBEANS-170, which deals with simplifying the JDBC driver download process.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists