MySQL Forums
Forum List  »  Backup

How to get mysql installation path ?
Posted by: Anil Anil
Date: February 02, 2009 12:03PM

I have 2 mysql servers running on my system,
To execute mysqldump, we need to specify the path of the bin folder

D:\mysql5.0.67\bin\mysqldump --user=xxx --password=xxx dbname

I am executing the above command from JSP using exec method from Runtime class.

My doubt is How to avoid hardcoding of mysql installation path (Is there any way to get path up to bin using port no ) Or any other way

Is there any way to get D:\mysql5.0.67\bin\ from Java so as to avoid hardcoding ?
Could anyone please give an idea of this ?

Options: ReplyQuote


Subject
Views
Written By
Posted
How to get mysql installation path ?
16651
February 02, 2009 12:03PM
4305
February 03, 2009 11:53PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.