我尝试将MyEclipse与数据库连接时出错

时间:2016-06-12 06:54:48

标签: java database

今天我尝试将MyEclipse与MySQL连接起来。但它只是不起作用。 IDE告诉我“端口1527的本地主机服务器有问题”。我该怎么做才能应付它,这是信息:

  

Sun Jun 12 14:49:03 CST 2016:拒绝访问   (“java.net.SocketPermission”“localhost:1527”“listen,resolve”)   java.security.AccessControlException:访问被拒绝   (“java.net.SocketPermission”“localhost:1527”“listen,resolve”)at   java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)     在   java.security.AccessController.checkPermission(AccessController.java:884)     在   java.lang.SecurityManager.checkPermission(SecurityManager.java:549)     在java.lang.SecurityManager.checkListen(SecurityManager.java:1131)     在java.net.ServerSocket.bind(ServerSocket.java:374)at   java.net.ServerSocket。(ServerSocket.java:237)at   javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:231)     在   org.apache.derby.impl.drda.NetworkServerControlImpl.createServerSocket(未知   来源)at   org.apache.derby.impl.drda.NetworkServerControlImpl.access $ 000(未知   来源)at   org.apache.derby.impl.drda.NetworkServerControlImpl $ 1.run(未知   来自java.security.AccessController.doPrivileged(Native Method)     在   org.apache.derby.impl.drda.NetworkServerControlImpl.blockingStart(未知   来源)at   org.apache.derby.impl.drda.NetworkServerControlImpl.executeWork(未知   来源)org.apache.derby.drda.NetworkServerControl.main(未知   源)

0 个答案:

没有答案