in visual studio when we make a project in c# with backhand as sql........we can see the sql file and we have to locate it in the corresponding place and specify that location........but in netbeans when we make a project in java and backhand as mysql.....we cannot see where that file locates.........can anyone tell me where that file(my database file in mysql)locates...............

check the mysql "current working directoy" (although I don't believe it will be there) and try printing the Java program "current working directory" and check there.

System.out.println(System.getProperty("user.dir"));

Edit: And I have no idea what this has to do with "making a connection permananet".