Cannot establish a connection to MySQL in NetBeans IDE

后端 未结 2 662
半阙折子戏
半阙折子戏 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    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.

提交回复
热议问题