Techiio-author
Started by Bruce MccullamSep 23, 2021

Open
How to shutdown MySQL server from java

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

I'm using a portable MariaDB (10.3.31) for a program written in Java.

When the program starts the database server starts like this:

Runtime.getRuntime().exec(path + "\\database\\bin\\mysqld.exe --port=15001");

So far so good. The server starts with no problem.

But I'm not able to shutdown the database server:

Runtime.getRuntime().exec(path + "\\database\\bin\\mysqladmin -u root -p shutdown");

By the way, I'm using Windows 10.

0 Replies

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance