h2 - No response, while connecting to the database -
i using h2 java swing desktop application.
i cannot able connect database, in server mode.
url : jdbc:h2:tcp://115.241.34.158:9092/lion/companies/1(2012-2013)/1(2012-2013);db_close_on_exit=false;db_close_delay=5;ifexists=true
the system, hangs, while giving java.sql.drivermanager.getconnection(url, username, password);
not throwing exception (or) messages.
it works fine, in single user mode. (without server)
what possible solution ?. please advice.
thanks , regards,
i.murugesan
if start tcp server without base directory, should use different database url. following database url
jdbc:h2:tcp://115.241.34.158:9092/~/lion/companies
means database file companies.h2.db
stored in directory lion
within current user home directory. if use
jdbc:h2:tcp://115.241.34.158:9092/lion/companies/1(2012-2013)/1(2012-2013)
then database file 1(2012-2013).h2.db
stored in directory lion/companies/1(2012-2013)
relative current working directory. , working directory depends on have started tcp server.
Comments
Post a Comment