Adding a JDBC Driver: New Connection Wizard and Add Driver
See Also
To connect to a database from within the IDE, you must specify an appropriate JDBC driver for this database. You can do this in two ways:
- Right-click the Databases node in the Services window and choose New Connection. The Locate Driver dialog box opens.
- Right-click a driver node under the Databases node in the Services window and choose Add Driver. The New JDBC Driver dialog box opens.
Both dialog boxes have the similar fields, which are described below.
- Driver. Choose the driver for the database you want to add.
- Driver File(s). Click Add and locate the archive file of the driver you want to add.
- Driver Class (in the New JDBC Driver dialog box). Once you choose a valid archive file, the Driver Class and
the Name fields should be filled in by the IDE.
Click Find if the Driver Class field is empty or incorrect.
The IDE will search the archive files that you selected in the
previous step and find all classes that implement the JDBC
API Driver interface (java.sql.Driver). The Driver
Class combo box lists the classes that the IDE finds. Use the
combo box to select the driver class that you need.
- Adding a new driver just creates a template for
new connections. The IDE does not actually try to use that driver or check
it to ensure it is correct until a connection is made.
- You can add the driver directly at the first step when setting up a connection and skip the New Driver dialog box.
-
See Also
- Connecting to a Database
- Adding a JDBC Driver
Legal Notices