Error in create back up in mysql through java program
        Posted  
        
            by Arivu2020
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Arivu2020
        
        
        
        Published on 2010-03-09T07:19:57Z
        Indexed on 
            2010/03/09
            7:21 UTC
        
        
        Read the original article
        Hit count: 209
        
java
Runtime.getRuntime().exec("C:\mysql\bin\mysqldump -u root -pmypassword Databasename -r C:/backup.sql"); I am using this code to create back up from my sql. but It creates the empty file in the path.Because it is waiting in the command prompt to get the password. How can i give password to it Using command prompt directly when i press enter after typing, it asks password.After giving password,It creates the backup.Give me any solution for this Thanks in advance
© Stack Overflow or respective owner