[英]Netbeans cannot establish a connection to jdbc
I'm trying to create a JDBC connection between a project in Netbeans and a MySQL database. 我正在尝试在Netbeans中的项目和MySQL数据库之间创建JDBC连接。 In the Netbeans connection wizard I receive the following
在Netbeans连接向导中,我收到以下信息
error: Cannot establish a connection to jdbc:mysql://localhost:3306/murach using com.mysql.jdbc.Driver (Unable to load authentication plugin 'caching_sha2_password'.)
错误:无法使用com.mysql.jdbc.Driver建立与jdbc:mysql:// localhost:3306 / murach的连接(无法加载身份验证插件'caching_sha2_password'。)
I'm running Netbeans 8.2, MySQL 8.0.15 and Java JDK 1.8.0_201 . 我正在运行Netbeans 8.2,MySQL 8.0.15和Java JDK 1.8.0_201 。 I am able to connect to the database using the credentials supplied in the wizard via the command prompt.
我可以通过命令提示符使用向导中提供的凭据连接到数据库。
I also confirmed that port 3306 is open in Windows Firewall. 我还确认了Windows防火墙中打开了端口3306。
使驱动程序类似于com.mysql5.jdbc.Driver
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.