【发布时间】:2014-05-30 03:43:13
【问题描述】:
今天我遇到了以下问题。连接数据库时出现如下错误。通过vpn连接申诉到远程数据库。
- 添加了必要的防火墙端口,甚至尝试断开其(没有帮助)
- 向 $JAVA_HOME/jre/lib/security/java.policy 添加了记录 授予代码库“文件:/-”{ 权限 java.security.AllPermission; };(没有帮助)
- 如果尝试通过 sql management studio 连接相同的数据,它可以工作并且可以访问。从开发环境无连接 示例(字符串连接 = jdbc:sqlserver://DEVMSSQL14.test.com:1433;SCHEMA=test;DATABASENAME=test, sql managment studia = DEVMSSQL14.test.com,1433)
- 在另一台计算机上运行没有问题,项目版本相同
它只剩下“权限被拒绝:连接”。也许有人面临类似的情况
错误:
The TCP/IP connection to the host DEVMSSQL14.test.com, port 1433 has failed. Error: "Permission denied: connect. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".
【问题讨论】:
标签: java sql-server jdbc vpn