SQL State : 42000
Error Code : 1235
Message : function get_lock has only noop implementation in tidb now, use tidb_enable_noop_functions to enable these functions
at org.flywaydb.core.internal.database.mysql.MySQLNamedLockTemplate.execute(MySQLNamedLockTemplate.java:62)
at org.flywaydb.core.internal.database.mysql.MySQLConnection.lock(MySQLConnection.java:147)
at org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory.lock(JdbcTableSchemaHistory.java:155)
at org.flywaydb.core.internal.command.DbMigrate.migrateAll(DbMigrate.java:161)
at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:139)
at org.flywaydb.core.Flyway$1.execute(Flyway.java:1395)
at org.flywaydb.core.Flyway$1.execute(Flyway.java:1356)
at org.flywaydb.core.Flyway.execute(Flyway.java:1711)
at org.flywaydb.core.Flyway.migrate(Flyway.java:1356)
at win.liyufan.im.DBUtil.init(DBUtil.java:113)
at io.moquette.server.Server.startServer(Server.java:227)
at io.moquette.server.Server.startServer(Server.java:219)
at io.moquette.server.Server.startServer(Server.java:203)
at io.moquette.server.Server.start(Server.java:113)
at cn.wildfirechat.server.Server.main(Server.java:15)
Caused by: java.sql.SQLSyntaxErrorException: function get_lock has only noop implementation in tidb now, use tidb_enable_noop_functions to enable these functions
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:1003)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:431)
at org.flywaydb.core.internal.jdbc.JdbcTemplate.queryForInt(JdbcTemplate.java:139)
at org.flywaydb.core.internal.database.mysql.MySQLNamedLockTemplate.tryLock(MySQLNamedLockTemplate.java:91)
at org.flywaydb.core.internal.database.mysql.MySQLNamedLockTemplate.lock(MySQLNamedLockTemplate.java:81)
at org.flywaydb.core.internal.database.mysql.MySQLNamedLockTemplate.execute(MySQLNamedLockTemplate.java:59)
... 14 more