fix: test mysql8.0

This commit is contained in:
devezhao 2020-03-30 12:57:55 +08:00
parent 3ccf303433
commit 7f85d00bfa
3 changed files with 8 additions and 6 deletions

View file

@ -74,17 +74,17 @@ public class AesPreferencesConfigurer extends PreferencesPlaceholderConfigurer i
}
}
// PRIVATE
// SPEC MYSQL PORT
String mysqlPort = System.getProperty("mysql.port");
if (StringUtils.isNotBlank(mysqlPort)) {
String dbUrl = props.getProperty("db.url");
dbUrl = dbUrl.replace("3306", "4653");
dbUrl = dbUrl.replace("3306", mysqlPort);
props.put("db.url", dbUrl);
}
// MUST NOT BE NULL
setIfEmpty(props, ConfigurableItem.CacheHost, "127.0.0.1");
setIfEmpty(props, ConfigurableItem.CachePort, "16379");
setIfEmpty(props, ConfigurableItem.CachePort, "6379");
propsHold = (Properties) props.clone();

View file

@ -351,7 +351,7 @@ public class EasyMeta implements BaseMeta {
* @return
*/
public static String getLabel(BaseMeta meta) {
return meta.getDescription();
return StringUtils.defaultIfBlank(meta.getDescription(), meta.getName().toUpperCase());
}
/**

View file

@ -1,6 +1,8 @@
-- !!! NOTICE !!!
-- IF YOU USING MYSQL 5.7 OR ABOVE, YOU SHOULD REMOVED THESE SQL_MODES IN my.cnf/my.ini FIRST.
-- !!! MYSQL VERSION NOTICE !!!
-- IN 5.7 OR ABOVE, YOU SHOULD REMOVED THESE SQL_MODES IN my.cnf/my.ini FIRST.
-- ONLY_FULL_GROUP_BY
-- IN 8.0 OR ABOVE, ONLY SUPPORTS mysql_native_password AUTHENTICATION MODE
-- default_authentication_plugin=mysql_native_password
-- #1 database/user
-- 首次使用请移除以下注释以创建数据库和用户