Saturday, 8 June 2013

Mysql JDBC Connection String For java

         Connection   con =DriverManager.getConnection("jdbc:mysql://localhost:3306/DBNAme","Username","Password");

Mysql DB Backup Using Java

public boolean backupDB( String dbUserName, String dbPassword,String dbName,String path) {

  String executeCmd = "mysqldump -u"+dbUserName+ " -p" + dbPassword + " --add-drop-database -B " + dbName + " -r " + path;

        Process runtimeProcess;
        try {

      runtimeProcess = Runtime.getRuntime().exec(new String[] { "cmd.exe", "/C", executeCmd });
            int processComplete = runtimeProcess.waitFor();

            if (processComplete == 0) {
                System.out.println("Backup created successfully");
                return true;
            } else {
                System.out.println("Could not create the backup");
        } catch (Exception ex) {

        return false;

Welcome To Abdent Technologies

 ABDENT Technologies has been a leading provider of Information Technology, Consulting Services. We are providing premium services with zenith quality for the Global Businesses. With a team of experienced software professionals to address the needs of Software industry in a cost effective way. We can mobilize the right technology to help clients to improve their performance. We develop innovative products to enhance the quality of life and thereby we are continually improving the position of our company, as well as enhancing the lives of our employees and our community.

   ABDENT Technologies, Offshore Software Development specialist that combines the definite bottom-line benefits of Offshore Outsourcing with its recognized expertise in strategic global models that help it in providing reliable Outsourcing Software Development Solutions. The services offered cover Custom Software Development, Application Development, Software Outsourcing, and Software Maintenance. Our goal is to deliver premium quality software development services and products while giving unmatched value to enterprises worldwide at an affordable cost. The expertise that they posses embraces a wide range of custom programming skills involving the latest development technologies, such as Java, J2EE, J2ME, ASP .Net, C#, AJAX, JSP, XML, PHP, JavaScript, Struts and many more