Commit fc72a780 authored by 黎博's avatar 黎博

获取数据库列表中去掉information_schema

parent 3a78e3e5
......@@ -586,7 +586,10 @@ public class DatabaseSyncServiceImpl implements DatabaseSyncService {
PreparedStatement preparedStatement = connection.prepareStatement(showDatabasesSql);
ResultSet dbListResultSet = preparedStatement.executeQuery();
while (dbListResultSet.next()) {
databaseList.add(dbListResultSet.getString(1));
String database = dbListResultSet.getString(1);
if (!database.equals("information_schema")) {
databaseList.add(database);
}
}
preparedStatement.close();
} catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment