diff --git a/docs/index.html b/docs/index.html index 6a7a3eb..8e54fda 100644 --- a/docs/index.html +++ b/docs/index.html @@ -766,7 +766,7 @@

引入jar包

<dependency>
   <groupId>cn.codeforfun</groupId>
   <artifactId>mysql-migrate</artifactId>
-  <version>1.2.7</version>
+  <version>1.2.8</version>
 </dependency>
@@ -790,16 +790,16 @@

测试类

public class MigrateTest { private static final Integer FROM_PORT = 3306; - private static final String FROM_HOST = "localhost"; + private static final String FROM_HOST = "192.168.112.62"; private static final String FROM_USERNAME = "root"; - private static final String FROM_PASSWORD = "root"; - private static final String FROM_DB = "test"; + private static final String FROM_PASSWORD = "Admin@2019"; + private static final String FROM_DB = "walmart"; - private static final Integer TO_PORT = 3307; + private static final Integer TO_PORT = 3306; private static final String TO_HOST = "localhost"; private static final String TO_USERNAME = "root"; private static final String TO_PASSWORD = "root"; - private static final String TO_DB = "test_db_1"; + private static final String TO_DB = "walmart"; /** * 显示数据库建表语句 @@ -808,6 +808,7 @@

测试类

@Ignore public void showSql() throws SQLException { DatabaseInfo info = new DatabaseInfo(FROM_HOST, FROM_PORT, FROM_USERNAME, FROM_PASSWORD, FROM_DB); +// DatabaseInfo info = new DatabaseInfo(TO_HOST, TO_PORT, TO_USERNAME, TO_PASSWORD, TO_DB); Migrate migrate = new Migrate().ignoreCharacterCompare(); List<String> sql = migrate.showSql(info); for (String s : sql) { @@ -893,6 +894,19 @@

更新日志