Error in create back up in mysql through java program
- by Arivu2020
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