无法连接到netbeans中的数据库服务

z6psavjg  于 2021-06-25  发布在  Mysql
关注(0)|答案(0)|浏览(213)

这个问题在这里已经有答案了

com.mysql.jdbc.exceptions.jdbc4.communicationsexception:通信链路故障(39个答案)
我在windows计算机上找不到my.cnf[副本](6个答案)
两年前关门了。
我想使用以下驱动程序连接到嵌入在netbeans中的数据库:mysql-connector-java-5.1.23-bin.jar(它是预先安装的)。但是,当我尝试这样做时,我得到的只是一个错误:

Cannot establish a connection to jdbc:mysql://localhost:3306/mysql?zeroDateTimeBehavior=convertToNull using com.mysql.jdbc.Driver (Communications link failure  The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)

我在google上搜索了一下,发现了这样一个错误:将mysql连接到javanetbeans时出错
有一个解决方案,编辑我的.cnf文件,我不知道在哪里找到。我使用Windows10操作系统,不知道etc/my.cnf文件可以放在哪里。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题