Cannot establish a connection to MySQL in NetBeans IDE

后端 未结 2 659
半阙折子戏
半阙折子戏 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.

    0 讨论(0)
  • 2021-01-25 00:21

    user = mysql is the OS user under which the MySQL daemon runs. From the error message, it appears that the MySQL user root has a non-blank password. You should determine what that password is and put it in the authentication config.

    0 讨论(0)
提交回复
热议问题