Results 1 to 5 of 5
Thread: run mysqldump command
- 10-25-2009, 02:59 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 88
- Rep Power
- 0
- 10-26-2009, 07:57 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
- 10-26-2009, 12:43 PM #3
Member
- Join Date
- Oct 2009
- Posts
- 88
- Rep Power
- 0
I know to execute it with Runtime.exec(), but it ask path of mysqldump.exe, and it is dependent os installed drive, but i need to run the command independent of password for mysqldump using Runtime.exec()
- 10-26-2009, 12:47 PM #4
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
It's not dependent on OS installed drive but on where the mysqldump.exe program is located. You can't run the command if you don't know where that program is unless if it's already on the PATH. Why do you want it to be run without specifying the password? Are you trying to steal someone's database?
- 10-26-2009, 05:46 PM #5
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
That doesn't mean you know how to do it correctly (which is what the earlier article is for, read it). And, if you know how to execute it, then why didi you ask how to execute it? You need to be a bit more specific in your questions.
Well, if it's not on the path, of course. Use a properties file or something to designate the full path.but it ask path of mysqldump.exe,
No, regardless of the OS the arguments to mysqldump are the same. The path may be different, but for that, see above.and it is dependent os installed drive,
You can't, unless you create a user without a password with access to the dbs/tables you need. Not a good idea.but i need to run the command independent of password for mysqldump using Runtime.exec()
Similar Threads
-
MYSQLDUMP from Java
By Robert_85 in forum Advanced JavaReplies: 6Last Post: 11-18-2009, 03:33 PM -
Does the JRE come with command to run?
By gotenks05 in forum New To JavaReplies: 5Last Post: 10-25-2008, 12:00 AM -
command
By dirtycash in forum New To JavaReplies: 8Last Post: 01-02-2008, 07:52 PM -
command help
By dirtycash in forum New To JavaReplies: 1Last Post: 12-05-2007, 12:24 AM -
Unable to execute command line command in java
By LordSM in forum New To JavaReplies: 1Last Post: 08-08-2007, 12:23 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks