Jump to content

Recommended Posts

Posted

[img]http://www.andhrafriends.com/uploads/gallery/album_15/gallery_24383_15_147101.gif[/img]

  • Replies 48
  • Created
  • Last Reply

Top Posters In This Topic

  • chinni005

    22

  • Nawab__

    8

  • Idly Vishwanatham

    7

  • manmadudhu

    4

Popular Days

Top Posters In This Topic

Posted

[quote name='manmadudhu' timestamp='1355494340' post='1302950523']
gm
[/quote]
gm ;) ;)

Posted

@fake try this [CODE]
public void actionPerformed(ActionEvent evt)
{
private String m_MySqlPath="";
ResultSet res=null;
res = DBHandler.getInstance().executeQuery("select @@basedir",null);
while(res.next())
{
m_MySqlPath=res.getString(1) ;
}
m_MySqlPath = m_MySqlPath.replace("\\Data\\", "\\bin\\");
if (exportDB.isSelected()
{
try {
String executeCmd = m_MySqlPath + "\\mysqldump -u " + DB_USER
+" -p" + DB_PASSWORD + " " + DB_NAME + " -r " + "\""+FilePath + "\\"
+ FileName+"\"";
Process runtimeProcess = Runtime.getRuntime().exec(executeCmd, null);
BufferedReader r=new BufferedReader(new InputStreamReader(runtimeProcess.getInputStream()));
String s;
while((s=r.readLine())!=null)
{
System.out.println(s);
}
return true;
}
catch (final Exception ex) {
ex.printstackTrace();
return false;
}
}
[/CODE]

×
×
  • Create New...