开发者

running my JDBC application in other systems

开发者 https://www.devze.com 2023-03-20 13:08 出处:网络
I created a JDBC applicationusing mysql5.5.14 . I want to run it on other systems without mysql5.5.14.(but having ja开发者_StackOverflowva)

I created a JDBC application using mysql5.5.14 . I want to run it on other systems without mysql5.5.14.(but having ja开发者_StackOverflowva) Is thee any way i can install(and configure) mysql5.5.14 on other systems via my application.


I'm not entirely sure what you're trying to do, but if you mean "configure" as in "create the same database tables and views", you can use something like Liquibase.

If you want to keep using JDBC but with another database system at the backend, you can just pass the JDBC driver's class name to the program through a configuration file and load the driver using

Class.forName(jdbcDriver)

when you start up your application.

HTH

Raku

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号