MySQL JDBC - Could not establish connection
Posted: Sun Sep 13, 2020 8:50 pm
Thank you so much for your time and expertise. After days of trying to connect to MySQL, I continue to get "java.sql.SQLException: Could not establish connection."
Using OxygenXML latest ver on MS Windows 10 with local standalone install of MySQL 8.0.21 at localhost:3306/[dbname]
Other tools e.g., Workbench, Navicat, connect to MySQL
To connect via OxygenXML: Downloaded latest MySQL driver via: http://dev.mysql.com/downloads/connector/j/. (also tried adding to path, using 5.1 version, etc.)
Followed instructions to create Generic JDBC datasource with path to mysql-connector-java-8.0.21.jar; driver class com.mysql.jdbc.driver (also tried other classes)
Followed instructions to create Connection (with jdbc:mysql//localhost:3306/[mydbname] (also tried every possible combination I can think of).
Please help ... thank you for your help! Could the problem be related to having a local installation? I first tried MySQL via wampserver. Didn't work. Then deleted wampserver and just installed standalone MySQL via MySQL installer.
Kevin
Using OxygenXML latest ver on MS Windows 10 with local standalone install of MySQL 8.0.21 at localhost:3306/[dbname]
Other tools e.g., Workbench, Navicat, connect to MySQL
To connect via OxygenXML: Downloaded latest MySQL driver via: http://dev.mysql.com/downloads/connector/j/. (also tried adding to path, using 5.1 version, etc.)
Followed instructions to create Generic JDBC datasource with path to mysql-connector-java-8.0.21.jar; driver class com.mysql.jdbc.driver (also tried other classes)
Followed instructions to create Connection (with jdbc:mysql//localhost:3306/[mydbname] (also tried every possible combination I can think of).
Please help ... thank you for your help! Could the problem be related to having a local installation? I first tried MySQL via wampserver. Didn't work. Then deleted wampserver and just installed standalone MySQL via MySQL installer.
Kevin