Skip navigation links

MySQL Forums :: Backup :: How to get mysql installation path ?


Advanced Search

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 ? 14812 Anil Anil 02/02/2009 12:03PM
Re: How to get mysql installation path ? 6895 Jay Alverson 02/02/2009 12:14PM
Re: How to get mysql installation path ? 3958 Anil Anil 02/03/2009 11:53PM
Re: How to get mysql installation path ? 3841 Jay Alverson 02/04/2009 07:54AM


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.