com.mirth.connect.model.util.MigrationException

Failed to execute script: mysql-9-3.0.0-1.sql

Samebug tips1

MySQL doesn't support some types of characters (such as emojis) with the utf8 encoding. You need to be on MySQL 5.5+ and force utf8mb4 (everywhere, client and server). You can do this sending the query "SET NAMES utf8mb4". Check this https://goo.gl/3E2qzg


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1666

  • via Unknown by Brent Moen,
  • via Unknown by Brent Moen,
  • Stack trace

    • com.mirth.connect.model.util.MigrationException: Failed to execute script: mysql-9-3.0.0-1.sql at com.mirth.connect.server.migration.Migrator.executeScript(Migrator.java:87) at com.mirth.connect.server.migration.Migrate3_0_0.migrate(Migrate3_0_0.java:46) at com.mirth.connect.server.migration.ServerMigrator.migrate(ServerMigrator.java:63) at com.mirth.connect.server.controllers.DefaultMigrationController.migrate(DefaultMigrationController.java:85) at com.mirth.connect.server.Mirth.startup(Mirth.java:235) at com.mirth.connect.server.Mirth.run(Mirth.java:154) at com.mirth.connect.server.Mirth.main(Mirth.java:107) Caused by: java.sql.SQLException: Can't execute the given command because you have active locked tables or an active transaction at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1078) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4187) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4119) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2570) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2731) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2809) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2758) at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:894) at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:732) at com.mirth.connect.server.migration.Migrator.executeScript(Migrator.java:84) ... 6 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    aidoanaidoan
    5 times, last one
    slashslash
    4 times, last one
    tvrmsmithtvrmsmith
    4 times, last one
    Unknown visitor
    Unknown visitorOnce,
    MethodCallMethodCall
    Once,
    148 more bugmates