0
I would like with my Java application (netbeans) to access the database that is on the server, but this has become complicated, because it is through a Linux machine.
Could someone explain to me how to do this?
The class of connection I use is:
public Connection LigaBD() {
try{
System.out.println("Entrei !!!");
Class.forName("org.sqlite.JDBC");
conn = DriverManager.getConnection("jdbc:sqlite:pesquisa.db");
System.out.println("Passei a segunda fase !!!");
}
catch(Exception e){
e.printStackTrace();
}
System.out.println("Nao consegui entrar na BD");
return null;
}
Accessing locally I can, the worst is mapping on Linux, I’m new to Linux.
Have you tried connecting via pgAdmin?
– user7261