Cannot establish a connection to MySQL in NetBeans IDE

后端 未结 2 664
半阙折子戏
半阙折子戏 2021-01-25 00:10

When I create a new web project with Hibernate, I open New Connection Wizard, choose MySQL (Connector/J driver) option (connector jar appears in the Driver Files list), I press

2条回答
  •  面向向阳花
    2021-01-25 00:14

    When I added a downloaded connector jar to the Driver Files list it worked. Somehow /home/myname/Downloads/mysql-connector-java-5.1.18/mysql-connector-java-5.1.18-bin.jar in this list works, but the native IDE's /home/myname/netbeans-7.0.1/ide/modules/ext/mysql-connector-java-5.1.13-bin.jar doesn't.

提交回复
热议问题