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