Wiki source code of JDBC and Entity Modeler

Version 19.1 by Lachlan Scott on 2007/07/10 19:57

Hide last authors
Lachlan Scott 19.1 1 **Problem:** You encounter the 'JDBC connection failed for driver ...' error message when trying to generate SQL in Entity Modeler.
franc 9.1 2
Lachlan Scott 19.1 3 **Discussion:** either the JDBC driver genuinely cannot be found, or more likely perhaps, your JDBC settings in Entity Modeler are incorrect.
franc 9.1 4
Lachlan Scott 19.1 5 **Checking the JDBC driver is in your CLASSPATH:**
franc 9.1 6
Lachlan Scott 19.1 7 On the Mac, if JDBC drivers are added to /Library/Java/Extensions they should be picked up automatically by Eclipse. Check your classpath settings in Eclipse as follows:
franc 9.1 8
Lachlan Scott 19.1 9 Right-click the project in Package Explorer
10 Select Java Build Path from the left hand list, and Libraries from the tabs in the main field
11 Open the JRE System Library list, and you should see your available JDBC driver see screenshot
12 If you cannot see your driver listed, you must add it. instructions required
franc 9.1 13
Lachlan Scott 19.1 14 **Checking the JDBC settings in Entity Modeler:**
franc 9.1 15
Lachlan Scott 19.1 16 Check that the settings for your JDBC driver are correct. Details should be provided by the suppliers. MySQL settings are shown in the screenshot see screenshot. Note that drivers have peculiar use of upper and lower case and that these must be correct for the driver to function.
franc 9.1 17
18 **MySQL JDBC driver settings:**
19
Lachlan Scott 11.1 20 URL: jdbc:mysql:~/~/<hostname>/<database//name>. eg. jdbc:mysql:~/~/localhost/authors
21 Driver: com.mysql.jdbc.Driver//
franc 9.1 22
23 **OpenBase JDBC driver settings:**
24
Lachlan Scott 11.1 25 URL: jdbc:openbase:~/~/<hostname>/<database//name>. eg. jdbc:openbase:~/~/localhost/authors
Lachlan Scott 17.1 26 Driver: com.openbase.jdbc.ObDriver
Lachlan Scott 19.1 27 //