Usage of mysqldump command

Hi buddies i need to call the mysqldump command from my java code... Anyone know how to call that command by using java program... pls tell the solution... thanks in advance

hi yar.. Iam execute the mysqldump command using java.lang.process but it will throws IOException.....?whats the solution for that?but using the same process class iam executing the linux command 'gedit' it will execute correctly... can u give me the solution for this problem...?

Similar Messages

  • How to execute MySqlDump Command from java..........

    hi friends,Iam used mysqldump command in linux platform to take backup of the database,its work properly....the command am used is
    mysqldump -u root -p threadpool > sampledatabase.sql
    I need to execute the same command in java....?Anyone here to know how to do that....?Thanks in advance........

    Crosspost:
    http://forum.java.sun.com/thread.jspa?threadID=5185230&messageID=9721722#9721722
    http://forum.java.sun.com/thread.jspa?threadID=5185199&messageID=9721587#9721587
    Do not mess the forum.

  • Mysqldump command execution.............

    public class ProcessDemo
    public static void main(String args[])
    try
    String str="mysqldump -u root -p threadpool>thre.sql";
    ProcessBuilder pb=new ProcessBuilder(str);
    pb.start();
    catch(Exception e)
    System.out.println(e);
    }hifriends.. Iam execute the 'mysqldump' command using java.lang.process but it will throws IOException.....?whats the solution for that?but using the same process class iam executing the linux command 'gedit' it will execute correctly... can anyone give me the solution for this problem...?

    hi friends,can anyone tell me the way to do backup of
    my database in MySql.Iam already shown my program....
    anyone tell me the changes what i do in that
    program?iam using that program in linux
    platform...?can anyone tell me the solution or
    suggestion... thanks in advanceCome on man! Wake up!
    READ THIS this -> http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    AND NOTE WHAT "it says there about output redirection"
    Okey buddy?

  • [Debugging] - how to avoi intensive CPU usage with debug command

    Hi all !
    I hope you're well !
    I'm just wondering if there is a mean to avoid the increase of CPU usage when using the debug command. More precisely I would like to know if it exists something to avoid the CPU to saturate and to allow vital process to be prioritary for using the CPU, just like a QoS mecanism but to classify the process in order of importance.
    Thanks a lot in advance !

    some time ago this document was posted on CSC which give an excellent overview on how to savely enable debug commands:
    https://supportforums.cisco.com/docs/DOC-16310

  • Mysqldump command execution in java

    public class SqlDum
    public static void main(String args[])
    try
    String str="mysqldump -u root -p threadpool > test.sql";
    Process p=Runtime.getRuntime().exec(str);
    p.waitFor();
    catch(Exception e)
    System.out.println(e);
    }The above code executed sucessfully but there is no generation of sql file.If iam run the command mysqldump -u root -p threadpool > test.sql its executes sucessfully and backup file created.... Command execution takes place in linux platform...?how can i execute in java?

    hi friends,can anyone tell me the way to do backup of
    my database in MySql.Iam already shown my program....
    anyone tell me the changes what i do in that
    program?iam using that program in linux
    platform...?can anyone tell me the solution or
    suggestion... thanks in advanceCome on man! Wake up!
    READ THIS this -> http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    AND NOTE WHAT "it says there about output redirection"
    Okey buddy?

  • Reg the usage of host command in web mode

    How do the client in three tier architecture can use the GUI opened by the HOST command?In client server it is working fine.In three tier,everything is opened in the apps server not on the client.please help out.
    regards,
    Dinesh

    Capture is used to sniff traffic flowing through the ace itself.
    What you were probably looking for is the command "debug".
    try -> debug aaa all
    This will show you all AAA related traffic/events.
    Be sure to remove the debug condition before logging out with "undebug all"
    If you want to capture traffic you need an access-list.
    Example:
    conf t
    access-list All permit ip any any
    exit
    capture all access-list All bufsize 2048 circular-buffer
    That should help you capture/sniff traffic passing through the ACE itself.
    Capture and Debug are two different things. :)
    Hope it helps
    Roble

  • REP - usage of STCN command

    Hi,
    I am working on a POC lab for REP with integration of RSTP of legacy switch. I have a full RSTP ring and 2 x open REP ring. I read certain Cisco document and find a STCN command is needed for "segment topology change notifcation" between REP ring or REP ring with RSTP ring.
    However, I found that there is only limited Cisco document for such topics. (only Cisco REP whitepaper or Cisco ME3400 / ME3750 config guide) Would any professional to share any documents (prefer ppt or pdf)
    Cheers
    Leon

    Hi Leon,
    The different option of this command refered to the different topology supported with opened segments (how the 2x Edges switch are connected to the outside world):
    - Both edges switches are connected to a STP domain: we need to translate the REP TCN into a STP TCN so the switch in the STP domain can flush their mac addresses as well: rep stcn stp
    - Both edges switches are connected to another REP segment: We need to generate a new REP TCN for this new segment: rep stcn segment
    - Both edges switches are connected via a common B2B link: There is nothing to propagate but the switch need to fluch the mac addresses learned via this interface: rep stcn interface
    In any case, the Admin VLAN (VLAN 1 by default) must be available in the outside world as it is used to send the TCN.
    HTH
    Laurent.

  • Tr command in Linux

    Hi All,
    I searched internet for the usage of tr command, honestly it is very powerfull when process flat files,
    take text replacement for example
    cat file1.txt | tr "abc" "xyz"
    the output will be that 'a' change to 'X', 'b' to 'Y', 'c' to 'Z'
    but does it support function that can replace "abc" to "xyz", not change them individually?
    Please advise which kind of option should I use for tr or any other command in Linux?
    thanks
    Henry

    How about find and replace with SED, e.g.:
    $ sed -i 's/orig_text/new_text/g' /home/oracle/test.txt
    sed edits "-i" /home/oracle/test.txt in place and replaces "orig_text" with "new_text"
    You can find many examples and tutorials about SED in google e.g.
    http://tldp.org/LDP/Bash-Beginners-Guide/html/chap_05.html

  • MySQLDump and Batch Files

    Hello all,
    I've been using the mysql connector package to populate and retrieve data from a mysql database. Two questions. First, I have recently become very fond of the mysqldump feature attached with the mysql package. Is there a way to call somthing like that from my connector module? ... or any other mysql "-esque" commands for that matter? (ie show tables, show create table someTable) ...
    I know that the first command I issue is actually a "USE myDatabaseName" to point the connector module at the correct databse. If the USE command is a mysql command, then I'm lead to believe that commands like SHOW will also be legit. However, what would the return structure be? ... would that also be some kind of ResultSet?
    Anyway the other question would be about the execution of batch files like the ones a mysqldump command would generate. I know that I am able to open the dumped text file and populate and run the commands via the methods:
    addBatch(String sql)throws SQLException // to populate
    executeBatch() // to run.. but is there a method that already does that?
    Thanks in advance
    -Curt

    Hi,
    Try Runtime.getRuntime().exec("batchfile.bat");
    Check out Class Runtime for more info.
    -adam

  • Output of "top" command

    i can't understand the CPU usage in top command. even the man page does not describe the necessary options. here is what i have from the "top":
    Cpu(s):  3.7%us,  1.0%sy,  0.0%ni, 95.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    how will i know which option represents the CPU  in use and which represents free CPU ?  (i mean the meanings of us, wa, id and sy )
    also, what is the difference between VIRT, RES  and SHR memories. which one represents RAM ?

    us is processor time used by userspace processes, sy by kernel, ni by niced processes, id means idle, wa denotes waiting for I/O, hi and si are hard/soft interrupts.
    Read "man top" for VIRT etc. descriptions.

  • What is Login command in VTY configuration

    Pls information in usage of Login command in VTY configuration in brief

    Hi,
    Login is used to control VTY access, it generally has 4 cases when AAA is not configured, and with AAA it serves another purpose:
    Without AAA:
    One of the following methods must be explicitly configure otherwise there can't be VTY access to the router.
    1. "no login" > No password is required for VTY access
    2. "login" + "password xxxx" > This password is required for login.
    3. "login local" + "username xxxx password xxxx" (global configuration) > a local configured username and password are required for login.
    4. "login tacacs" + "tacacs-server host x.x.x.x" (global configuration) > Use TACACS or Extended TACACS server for login.
    With AAA:
    With AAA it can be used to specify a custom AAA authentication method using the "login authentication xxxx" command under the VTYs.
    NOTE TACACS+ can be enabled only through AAA commands.
    I hope that i've been informative.
    BR,
    Mohammed Mahmoud.

  • Parsley Dynamic Command & Dynamic Object for Soap web services

    Hi,
        <fx:Declarations>
            <s:CallResponder id="getSearchEngineForReferencePageResult"/>
            <lawpadcommunicationservicesport:LawPadCommunicationServicesPort id="lawPadCommunicationServicesPort"
                                                                             result="lawPadCommunicationServicesPort_resultHandler(event)"       
                                                                             fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
            <s:CallResponder id="getBasePathForFileDownLoadResult"/>
            <lawpadcommunicationservicesport:LawPadCommunicationServicesPort id="RefLawPadCommunicationServiceGetBasePath"
                                                                             result="RefLawPadCommunicationServiceGetBasePath_resultHandler(event)"
                                                                             fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
            <s:CallResponder id="getXmlPathLinkResult"/>
            <xmlpathcommunicationport:XmlPathCommunicationPort id="xmlPathCommunicationPort"
                                                               fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
        </fx:Declarations>

    Hi,
    I am new to Parsley.....
    Can u refer me some link to understand all features of Parsley.
    Mainly Dynamic Command and object for soap web services....
    I am in confused state with the usage of dynamic command and object for Soap web services.
    <fx:Declarations>
            <s:CallResponder id="getSearchEngineForReferencePageResult"/>
            <lawpadcommunicationservicesport:LawPadCommunicationServicesPort id="lawPadCommunicationServicesPort"
                                                                               result="lawPadCommunicationServicesPort_resultHandler(event)"        
                                                                               fault="Alert.show(event.fault.faultString + '\n' +  event.fault.faultDetail)" showBusyCursor="true"/>
            <s:CallResponder id="getBasePathForFileDownLoadResult"/>
            <lawpadcommunicationservicesport:LawPadCommunicationServicesPort id="RefLawPadCommunicationServiceGetBasePath"
                                                                                result="RefLawPadCommunicationServiceGetBasePath_resultHandler(event) "
                                                                               fault="Alert.show(event.fault.faultString + '\n' +  event.fault.faultDetail)" showBusyCursor="true"/>
            <s:CallResponder id="getXmlPathLinkResult"/>
            <xmlpathcommunicationport:XmlPathCommunicationPort id="xmlPathCommunicationPort"
                                                                fault="Alert.show(event.fault.faultString + '\n' +  event.fault.faultDetail)" showBusyCursor="true"/>
      </fx:Declarations>
    Thanks & Regards

  • Ressource Usage under Solaris

    Hi everybody,
    I'm a newbie and I created four data bases on Oracle 9i under
    Solaris. Ech data bases uses about 400 MB of memory. Is that a
    normal value? Basically there is no data in the data bases, yet.
    I created them as general data bases with the wizard.
    Thanks for any comments or hints.
    Best regards,
    Ingo

    Michael ,
    If you are looking for the amount of physical memory on your system,
    use the 'prtconf' command. If you would like to get some virtual
    memory page statistics, use the 'vmstat' command. If you would like to
    find out about the memory allocated to a particular process, use
    'ps -e -opid,vsz,rss,args'. The only problem is the different behavior on
    different versions of Solaris. Check the man pages to find out about
    the usage of each command.
    A good tool is 'prtmem' in the MemTool package which can be
    downloaded anonymously from playground.sun.com in /pub/memtool/
    or goto www.solarisinternals.com . The MemTool tools are reported to
    work on Solaris 2.6 to 2.8. The 'prtmem' tool will break down the
    memory usage as follows.
    1) Total Memory - approx. total memory
    2) Kernel Memory - memory allocated to the kernel
    3) Application - amount of anonymous pages in memory
    4) Executable & libs - amount of executable and shared library pages
    in memory
    5) File Cache - amount of file cache not on free list
    6) Free, file cache - amount of file cache on free list
    7) Free, free - memory that is free
    Please note that the "Free, free" number is usually very close,
    if not equal, to zero. This is due to the VM systems use of the free
    memory to cache files.
    The ultimate resource for this type of info, from a kernel perspective, is
    the "Solaris Internals" book written by Mauro and McDougall. I
    recommend it highly!
    HTH,
    Rob

  • NVRAM Password command broken?

    Hi people,
    I have noticed a strange issue for about a month, most likely caused by the OS X 10.7.2 update:
    When you are using the Open Firmware Password tool you can set the bootup password to prevent the usage of bootup commands like CD booting, PRAM reset, Netboot etc. This works fine.
    Since I am depoying company-wide Mac distributions I am using the Terminal command to get this to work, the command is:
    nvram security-passwort=<PASSWORD ENCODED>
    nvram security-mode=command
    Up to now (about a month and a half ago) this worked fine, but now I can see the following issues:
    When setting the passwort or the command I get the correct value from nvram by checking by command (e.g. 'nvram security-mode' correctly give back the command setting).
    If I am setting this on a new Mac it makes no use of it, e.g. I can still access the boot manager without entering the password.
    When I try to remove the option to ask for a password on Macs that are asking for it from previous (working) usage of these commands it goes on to ask for the password. E.g. I tell a "blocked" Mac 'nvram security-mode=', reboot and it still asks me for the password when trying to enter the boot manager.
    When using the Open Firmware Password Tool, e.g. on the Recovery Disk (yes, it is hidden but can be accessed/started by Terminal) it is working alright.
    Has anyone an idea what is going on here or has experienced the same issues?
    I appreciate any help.
    Regards,
    Timo

    Thank you, nice idea.
    As far as I saw nothing changed, the two settings security-command and security-password are the only ones that have changed as far as I could see. The security-password is only shown when using sudo or root access, so I shouldn't have missed any value.
    In about a week I'll be getting a new Mac and I will try to set the NVRAM stuff via terminal first and see if it is working. Maybe this is an issue with our installations, but I could not thing of a possible cause...

  • Gatekeeper alias command

    I am trying to understand the usage of the alias command. I have two CMs and H323 ATA registered to the gatekeeper. I don't want to use tech-prefixes and I want gatekeeper to make all of its routing decisions based on the registered E164IDs. As CM does not register the E164 #s , I configured the following alias entry but it does not seem to work. Can somebody enlighten me about the usage of this command ? Thanks
    gatekeeper
    zone local home cisco.com
    zone local office cisco.com
    alias static 172.25.3.102 1720 gkid office gateway voip ras 172.25.3.102 1719 e164 3903
    no use-proxy office default inbound-to terminal
    no use-proxy office default outbound-from terminal
    no shutdown
    Router#sh gatekeeper endpoints
    GATEKEEPER ENDPOINT REGISTRATION
    ================================
    CallSignalAddr Port RASSignalAddr Port Zone Name Type Flags
    172.25.5.11 2037 172.25.5.11 2665 office VOIP-GW
    H323-ID: LabCMTrunk_1
    Voice Capacity Max.= Avail.= Current.= 2
    172.25.3.102 49232 172.25.3.102 49229 office VOIP-GW
    H323-ID: EmreHomeTrunk_1
    Voice Capacity Max.= Avail.= Current.= 0
    172.25.3.102 1720 172.25.3.102 1719 office VOIP-GW S
    E164-ID: 3903 (static)
    192.168.80.55 1720 192.168.80.55 1719 office TERM
    H323-ID: port0=333
    E164-ID: 1200
    192.168.80.55 1721 192.168.80.55 1739 office TERM
    H323-ID: port1=333
    E164-ID: 1300

    I suspect the problem is not with the alias statement but rather with anonymous device support in CCM.
    Alias statements provide the simplest form of RAS. They tell the GK to return a specific IP when a particular e164 is ARQed. No tech prefix is required, and default tech prefixes are not used in matching the e164. However, aliases _do_not_ depend on a endpoint be registered. Indeed, aliases are ideal for situations where an endpoint doesn't support ras. So there is no call state maintained in the GK.
    I believe you are seeing the failure of Anonymous Device support in CCM. CCM will not accept h225 call setups from devices it is not aware of. There are three ways to get the CCM to accept a call from an h323 endpoint:
    1) Configure the device in CCM as a h323 gateway. When a new CS from a h323 endpoint arrives, CCM compares the source IP address against those configured as gateways. If the IP is unknown, it will
    2) ARQ its GK controlled trunks. If a GK responds with an ACF, then CCM will accept the call. If it receives an ARJ, or there are no GK controlled trunks, CCM will reject the Call. Also, since aliases don't require the GK to maintain call state information,
    3) You may override this behavior in CallManager Service parameters by setting "Accept Unknown TCP Connection" to true. This is not a good idea as it could open you up to toll fraud.
    HTH,
    Michael
    PS. please remember to rate posts.

Maybe you are looking for

  • How to design a grid to withstand a partial network failure

    Hi, We are evaluating Coherence for a mission-critical system where we want to test partial network failure scenario. We want to run 4 physical hosts, 8 JVMs with 2 JVM on each host. The evaluation criteria is to connect 2 machines on either side of

  • KOSTL in PO (SapScript)

    Hi , I want to print for each item service purchase order information about cost center. In transaction ME23N we saw this in detail area. Question is, where I can find it and if it is from ML_ESLL structure wchich field is it ... Thanks in advance. D

  • Books comparision

    Hi Experts,                  Please advice which is better book to purchase : ABAP development for sap business workflow or Practical Workflow for SAP ? rgds, Ankita Edited by: ANKITA BHARDWAJ on Feb 16, 2012 7:21 AM Moderator Message: Moved to Coffe

  • What happened to the share to facebook, flickr in PSE 12 organizer?

    I just installed PSE 12 (full version).  In the organizer, there is no longer a share for services like Facebook and Flickr.  What happened?  I saw that I can upload a single photo via PSE 12 Editor, but there is no longer an ability to bulk upload. 

  • My ipod nano won't turn on when it's not plugged into my laptop

    Hey this is really getting me worried.i bought this ipod nano on ebay and it arrvied today. i plug the ipod nano into my laptop and it will work reconises it fine and will charge and sync but when it says it's fully charged i unplug it and the ipod j