You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something in the datamigration has failed. I can see that there is references to mh_PlayersV2 which is an error. The CONSTRAINS need to be dropped.
If you know SQL you can do it yourself.
If you dont have many data in the MobHunting database you can drop all the mh_ * tables and restart the server. This way the constrains will be fixed.
I can make a /mh command for you where you can execute the drop CONSTRAINS command and hopefully fix this error. It might take me a few days to make the command for you.
Olá, estava testando quando deu esse erro.. ja apaguei as tabelas.. mas achei importante reportar este erro pelo fato de poder ocorrer com outras pessoas
Hello, I was testing when I gave this error .. I deleted the tables .. but I found it important to report this error because it could happen with other people
By Google translate
01.12 15:41:11 [Server] WARN one.lindegaard.MobHunting.storage.DataStoreException: java.sql.BatchUpdateException: Cannot add or update a child row: a foreign key constraint fails (
mc_151
.mh_Daily
, CONSTRAINTmh_Daily_Player_Id
FOREIGN KEY (PLAYER_ID
) REFERENCESmh_PlayersV2
(PLAYER_ID
) ON DELETE CASCADE)01.12 15:41:11 [Server] WARN at one.lindegaard.MobHunting.storage.MySQLDataStore.savePlayerStats(MySQLDataStore.java:260)
01.12 15:41:11 [Server] WARN at one.lindegaard.MobHunting.storage.asynch.StoreTask.run(StoreTask.java:47)
01.12 15:41:11 [Server] WARN at one.lindegaard.MobHunting.storage.asynch.StoreTask.run(StoreTask.java:13)
01.12 15:41:11 [Server] WARN at one.lindegaard.MobHunting.storage.DataStoreManager$TaskThread.run(DataStoreManager.java:432)
01.12 15:41:11 [Server] WARN Caused by: java.sql.BatchUpdateException: Cannot add or update a child row: a foreign key constraint fails (
mc_151
.mh_Daily
, CONSTRAINTmh_Daily_Player_Id
FOREIGN KEY (PLAYER_ID
) REFERENCESmh_PlayersV2
(PLAYER_ID
) ON DELETE CASCADE)01.12 15:41:11 [Server] WARN at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
01.12 15:41:11 [Server] WARN at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
01.12 15:41:11 [Server] WARN at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
01.12 15:41:11 [Server] WARN at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
01.12 15:41:11 [Server] WARN at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
01.12 15:41:11 [Server] WARN at com.mysql.jdbc.Util.getInstance(Util.java:387)
01.12 15:41:11 [Server] WARN at com.mysql.jdbc.SQLError.createBatchUpdateException(SQLError.java:1161)
01.12 15:41:11 [Server] WARN at com.mysql.jdbc.StatementImpl.executeBatchInternal(StatementImpl.java:1048)
01.12 15:41:11 [Server] WARN at com.mysql.jdbc.StatementImpl.executeBatch(StatementImpl.java:958)
01.12 15:41:11 [Server] WARN at one.lindegaard.MobHunting.storage.MySQLDataStore.savePlayerStats(MySQLDataStore.java:253)
01.12 15:41:11 [Server] WARN ... 3 more
01.12 15:41:11 [Server] WARN Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (
mc_151
.mh_Daily
, CONSTRAINTmh_Daily_Player_Id
FOREIGN KEY (PLAYER_ID
) REFERENCESmh_PlayersV2
(PLAYER_ID
) ON DELETE CASCADE)01.12 15:41:11 [Server] WARN at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
01.12 15:41:11 [Server] WARN at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
01.12 15:41:11 [Server] WARN at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
01.12 15:41:11 [Server] WARN at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
01.12 15:41:11 [Server] WARN at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
01.12 15:41:11 [Server] WARN at com.mysql.jdbc.Util.getInstance(Util.java:387)
01.12 15:41:11 [Server] WARN at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:934)
01.12 15:41:11 [Server] WARN at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3966)
01.12 15:41:11 [Server] WARN at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3902)
01.12 15:41:11 [Server] WARN at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2526)
01.12 15:41:11 [Server] WARN at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2673)
01.12 15:41:11 [Server] WARN at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545)
01.12 15:46:03 [Multicraft] Auto-saving world...
01.12 15:46:03 [Multicraft] Skipped 3 lines due to rate limit (30/s)
01.12 15:46:03 [Server] INFO Saving is already turned on
01.12 15:46:03 [Server] INFO Saving...
01.12 15:46:03 [Server] INFO Saved the world
01.12 15:46:11 [Server] WARN one.lindegaard.MobHunting.storage.DataStoreException: java.sql.BatchUpdateException: Cannot add or update a child row: a foreign key constraint fails (
mc_151
.mh_Daily
, CONSTRAINTmh_Daily_Player_Id
FOREIGN KEY (PLAYER_ID
) REFERENCESmh_PlayersV2
(PLAYER_ID
) ON DELETE CASCADE)01.12 15:46:11 [Server] WARN at one.lindegaard.MobHunting.storage.MySQLDataStore.savePlayerStats(MySQLDataStore.java:260)
01.12 15:46:11 [Server] WARN at one.lindegaard.MobHunting.storage.asynch.StoreTask.run(StoreTask.java:47)
01.12 15:46:11 [Server] WARN at one.lindegaard.MobHunting.storage.asynch.StoreTask.run(StoreTask.java:13)
01.12 15:46:11 [Server] WARN at one.lindegaard.MobHunting.storage.DataStoreManager$TaskThread.run(DataStoreManager.java:432)
01.12 15:46:11 [Server] WARN Caused by: java.sql.BatchUpdateException: Cannot add or update a child row: a foreign key constraint fails (
mc_151
.mh_Daily
, CONSTRAINTmh_Daily_Player_Id
FOREIGN KEY (PLAYER_ID
) REFERENCESmh_PlayersV2
(PLAYER_ID
) ON DELETE CASCADE)01.12 15:46:11 [Server] WARN at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
01.12 15:46:11 [Server] WARN at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
01.12 15:46:11 [Server] WARN at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
01.12 15:46:11 [Server] WARN at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
01.12 15:46:11 [Server] WARN at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
01.12 15:46:11 [Server] WARN at com.mysql.jdbc.Util.getInstance(Util.java:387)
01.12 15:46:11 [Server] WARN at com.mysql.jdbc.SQLError.createBatchUpdateException(SQLError.java:1161)
01.12 15:46:11 [Server] WARN at com.mysql.jdbc.StatementImpl.executeBatchInternal(StatementImpl.java:1048)
01.12 15:46:11 [Server] WARN at com.mysql.jdbc.StatementImpl.executeBatch(StatementImpl.java:958)
01.12 15:46:11 [Server] WARN at one.lindegaard.MobHunting.storage.MySQLDataStore.savePlayerStats(MySQLDataStore.java:253)
01.12 15:46:11 [Server] WARN ... 3 more
01.12 15:46:11 [Server] WARN Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (
mc_151
.mh_Daily
, CONSTRAINTmh_Daily_Player_Id
FOREIGN KEY (PLAYER_ID
) REFERENCESmh_PlayersV2
(PLAYER_ID
) ON DELETE CASCADE)01.12 15:46:11 [Server] WARN at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
01.12 15:46:11 [Server] WARN at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
01.12 15:46:11 [Server] WARN at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
01.12 15:46:11 [Server] WARN at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
01.12 15:46:11 [Server] WARN at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
01.12 15:46:11 [Server] WARN at com.mysql.jdbc.Util.getInstance(Util.java:387)
01.12 15:46:11 [Server] WARN at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:934)
01.12 15:46:11 [Server] WARN at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3966)
01.12 15:46:11 [Server] WARN at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3902)
01.12 15:46:11 [Server] WARN at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2526)
01.12 15:46:11 [Server] WARN at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2673)
01.12 15:46:11 [Server] WARN at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545
The text was updated successfully, but these errors were encountered: