}//GEN-LAST:event_jButtonExecutaBackupActionPerformed
private void jButtonExecutaRestoreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonExecutaRestoreActionPerformed
// TODO add your handling code here:
try {
Dao dao = new Dao();
String user = driveAnterior.getUserName();
String schema = driveAnterior.getDataBase();
String host = driveAnterior.getServerName();
String password = driveAnterior.getPassword();
String arquivoLocal = file.getName();
dao.getNewSchema(schema);
//System.out.println("cmd /c mysql -h" + host + " -u" + user + " -p" + password + " " + schema + " < " + arquivoLocal);
Runtime.getRuntime().exec("cmd /c mysql -h" + host + " -u" + user + " -p" + password + " " + schema + " < " + arquivoLocal);
//exec("cmd /c mysqldump -uroot -proot modulorelacionamento > backupfile.sql");//[backupfile.sql] < [restorefile.sql]");