Start the bank service with a function

Asked

Viewed 19 times

0

I would like to know how I can do a function that once I start the software, I can start the database service if it is turned off. to using java with swing, netbeans and Mysql

thanks in advance.

1 answer

0

Mano if mysql is turned off there is no way you can start your database, you can configure in your Main class to open mysql so q run your project using "Process". example:

Process cal = Runtime.getRuntime().exec("calc.exe");//abri calculadora

vc can create a process to open mysql

Browser other questions tagged

You are not signed in. Login or sign up in order to post.