它是一个应用程序的jdbc oracle连接,现在是同一个应用程序的mysql连接

时间:2017-03-14 10:32:29

标签: java mysql oracle jdbc

  

jdbc.driverClassName = oracle.jdbc.driver.OracleDriver
  jdbc.url = jdbc:oracle:thin:@ 172.16.4.14:1521:amsprod
  jdbc.username = licdev
  jdbc.password = licdev1234

当我运行这个程序时。控制台面板显示::
1 .java.sql.SQLRecoverableException:IO错误:网络适配器无法建立连接

2.Caused by:oracle.net.ns.NetException:网络适配器无法建立连接

  1. 引起:java.net.UnknownHostException:gmslora.ceujuntghskx.ap-south- 1.rds.amazonaws.com
  2. 此错误。

1 个答案:

答案 0 :(得分:0)

配置mysql:

  

jdbc.driverClassName = com.mysql.jdbc.Driver
  jdbc.url = jdbc:mysql://172.16.4.14:3306 / amsprod
  jdbc.username = licdev
  jdbc.password = licdev1234

<!DOCTYPE html>
<html>
<head>
<style>
div{background-color:red;}
div:nth-child(3n){background-color:black;}
</style>
</head>
<body>
<div>A</div>
<div>B</div>
<div>C</div> <!-- SPECIFIC STYLE -->
<div>D</div>
<div>E</div>
<div>F</div> <!-- SPECIFIC STYLE -->
<div>G</div>
<div>H</div>
<div>I</div> <!-- SPECIFIC STYLE -->

</body>
</html>