Likely there are missing variables that cause the crash. Either this or your emulator is experiencing an error. Check your error logs.What would you suggest I do?
The Production is the same as my external variables etc.
The error is right there. Your databse does not contain the table server_status.Added
Post automatically merged:
Error log
Error in query:
UPDATE `server_status` SET `users_online` = @Users, `loaded_rooms` = @loadedRooms LIMIT 1;
MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'oliver.server_status' doesn't exist
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at Plus.Database.Adapter.QueryAdapter.RunQuery() in C:\Users\Sledmore\Desktop\PlusEMU\Database\Adapter\QueryAdapter.cs:line 167
-- ----------------------------
-- Table structure for server_status
-- ----------------------------
DROP TABLE IF EXISTS `server_status`;
CREATE TABLE `server_status` (
`users_online` int(11) NOT NULL DEFAULT 0,
`loaded_rooms` int(11) NOT NULL DEFAULT 0,
UNIQUE KEY `users_online` (`users_online`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- ----------------------------
-- Records of server_status
-- ----------------------------
INSERT INTO `
` VALUES ('0', '0');
This was already fixed and his issue wasn't this, because his database already had this table.In the first instance, I would suggest that you find a clean SQL and reset/reimport your MySQL database.
If you are using an existing MySQL database, you might try running the following SQLs but this is no silver bullet; it looks as if you could be missing other things too...
PHP:-- ---------------------------- -- Table structure for server_status -- ---------------------------- DROP TABLE IF EXISTS `server_status`; CREATE TABLE `server_status` ( `users_online` int(11) NOT NULL DEFAULT 0, `loaded_rooms` int(11) NOT NULL DEFAULT 0, UNIQUE KEY `users_online` (`users_online`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of server_status -- ---------------------------- INSERT INTO ` ` VALUES ('0', '0');