野蝇启用数据源统计信息返回"JBAS014792: Unknown attribute statistics-enabled"



当我尝试在wildfly中为mysql数据源启用统计信息时,它抛出以下错误:

Internal Server Error
{
    "outcome" => "failed",
    "result" => {"step-1" => {
        "outcome" => "failed",
        "failure-description" => "JBAS014792: Unknown attribute statistics-enabled",
        "rolled-back" => true
    }},
    "failure-description" => {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "JBAS014792: Unknown attribute statistics-enabled"}},
    "rolled-back" => true
}

我使用普通的mysql数据源,它可以正常工作。这里可能出了什么问题?

环境:

  • Java: 1.8.0_25
  • 野蝇 8.2.0.最终版
  • MySQL: MySQL-connector-java-5.1.35-bin.jar

确保您正在使用的每个数据源在 stanalone .xml 文件的路径 JBOSS_HOME/standalone/configuration/stanalone.xml 下都有属性"statistics-enabled = true"。

为此,首先您需要停止 JBoss 服务器 ,修改独立服务器.xml然后启动服务器。

最新更新