com.icexxx.db_init.App Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of db-init Show documentation
Show all versions of db-init Show documentation
MySQL database initialization and SQL script import.
The newest version!
package com.icexxx.db_init;
import java.io.IOException;
/**
* db init!
*/
public class App {
public static void main(String[] args) throws InterruptedException, IOException {
System.out.println("db init!");
String password = "123456";
String database = "test";
String mysqlPath = "C:/Program Files/MySQL/bin";
String sqlPath = "C:/sql";
DbInit.init(password, database, mysqlPath, sqlPath);
// DbInit.updatePassword(null, password, null, null, null, "123456");
}
}