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.
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.
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