Start mysql server from java -


how start , stop mysql server java(osx) programtically?can provide code snippet this. non of code snippets given in stackoverflow working properly.

i'm sorry, can't comment because not have enough reputation.

what try running start script command line. means getting runtime , setting command tou need. i.e,

runtime.getruntime.exec("sudo /usr/local/mysql/support-files/mysql.server start"); 

another possibility create proccesbuilder , set params need startup.

hope helps.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -