Starts the bank service with a role

0

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

Thank you in advance.

    
asked by anonymous 25.06.2017 / 15:04

1 answer

0

If mysql is turned off, you can not start your database, you can configure your main class to open mysql so you can run your project using "Process". example:

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

You can create a process to open mysql

    
25.06.2017 / 15:35