我刚刚在AWS中创建了DB MySQL 5.6.40。我可以使用Sequel Pro 1.1.2连接到数据库
这是我在pom.xml文件中的配置:
function Count(links){
let Count=0;
$.each(links ,function(key,val){
Count++;
});
return Count;
}
function getMenu(links){
$("<ul></ul>",{
"class":"ulTest"
}).appendTo('div.test');
$.each(links ,function(key,val){
var childCount=Count(val.children) ;
if (childCount) {
getMenu(val.children);
}else{
$('<li class="liClass"><a class="'+val.icon+'" href="'+val.menuLink+'">'+val.menuName+'</a></li>').appendTo('ul.ulTest');
}
});
}
getMenu(links);
但是当我运行<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>3.5.3</version>
<configuration>
<changeLogFile>src/main/resources/datamodel/liquibaseChangeLog.xml</changeLogFile>
<driver>com.mysql.jdbc.Driver</driver>
<url>pradera.cwob2oxhu1so.eu-central-1.rds.amazonaws.com</url>
<username>pradera</username>
<password>AzSWMdlckdstgs0aed</password>
</configuration>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>updateSQL</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.27</version>
</dependency>
</dependencies>
</plugin>
我收到此错误:
错误]无法在项目加密上执行目标org.liquibase:liquibase-maven-plugin:3.5.3:updateSQL(默认):设置或运行Liquibase:liquibase.exception.DatabaseException:liquibase.exception.DatabaseException:错误无法使用驱动程序com.mysql.jdbc.Driver与pradera.cwob2oxhu1so.eu-central-1.rds.amazonaws.com建立连接。给定数据库URL的驱动程序可能错误-> [帮助1] [错误]
答案 0 :(得分:0)
将pradera.cwob2oxhu1so.eu-central-1.rds.amazonaws.com
的{{1}}更改为