src/com/bar/safe/Mysql.java

(完整代码) 835B

package com.bar.safe;

import java.io.IOException;
import java.io.PrintStream;

public class Mysql
{
  private static String str = null;

  public static void backup()
  {
    str = "mysqldump -u root -p123 --opt   bar >  c:/bar.sql";
    try {
      Runtime rt = Runtime.getRuntime();
      rt.exec("cmd /c" + str);

      System.out.println("successly!");
    } catch (IOException e) {
      e.printStackTrace();
      System.out.println("something wrong!");
    }
  }

  public static void load()
  {
    str = "mysql -u root -p123456 bar  <  c:/bar.sql";

    Runtime rt = Runtime.getRuntime();
    try {
      rt.exec("cmd /c" + str);
      System.out.println("restore successly!");
    } catch (IOException e) {
      e.printStackTrace();
      System.out.println("restore fail!");
    }
  }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。