尝试通过JDBC连接远程Oracle数据库时,收到以下异常:
java.sql.SQLRecoverableException: IO-fout: The Network Adapter could not establish the connection
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:536)
at oracle.jdbc.driver.
当我尝试与数据库连接的java应用程序工作时,我收到了上面的消息。
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: 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.
在这里,我将在我的java应用程序中提到一些java代码;我用它们来连接数据库。
jDBC驱动程序名称和
到目前为止,当我必须连接到32位Access数据库时,我只是使用32位JVM执行应用程序。但是,我现在正在开发一个需要64位JVM的应用程序,但我仍然需要连接到32位Access数据库。当我尝试连接时,我得到了这个异常:
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.o
我正在尝试连接到postgresql服务器,该服务器当前在装有appscripts的google cloud machine上运行。我想将数据从谷歌电子表格推送到postgresql数据库中,我已经尝试在此中提供的jdbc文档的帮助下实现了这一点。我浏览了文档,但找不到任何与postgresql相关的内容,因此我尝试连接运行在同一服务器上的mysql数据库,但显示错误
我尝试连接到mysql的代码如下所示
var server = 'ipaddress'
var dbName = 'dbname'
var username = 'db name