Java JDBC Firebird错误连接被远程接口拒绝(GDS异常。335544421)

时间:2018-10-09 00:31:54

标签: java jdbc firebird jaybird

public static void main(String[] args) {

    String databaseURL = "jdbc:firebirdsql://localhost:3050/e:/firebird/test.fdb";
    String user = "SYSDBA";
    String password = "masterkey";
    String driverName = "org.firebirdsql.jdbc.FBDriver";

    try {
        Class.forName(driverName);
        Connection connection = DriverManager.getConnection(databaseURL,user, password);

    } catch (SQLException | ClassNotFoundException e) {
        e.printStackTrace();
    }
}

有人可以帮助我解决此错误吗?

org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544421. connection   rejected by remote interface
at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:120)
at org.firebirdsql.jdbc.AbstractDriver.connect(AbstractDriver.java:136)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:247)

/ Library / Frameworks文件夹之外的数据库

在这种情况下,我使用Java 1.8 + Firebird 3.0 + Jaybird 2.2.12

0 个答案:

没有答案