• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved error while create character ZNOTE ACC

tuduras

Well-Known Member
Joined
Jun 4, 2017
Messages
340
Solutions
2
Reaction score
58
Hello, last I added some querry with autoloot and occurs error when I want to create character, anyone know how to solve it?create.webp
help ;p
PS: I dont have backup
 
Probably you defined column as a NOT NULL so it requires some value when u create row in that table.
ALTER TABLE <your table>
ALTER autoloot SET DEFAULT 0;

or


ALTER TABLE <your table>
MODIFY autoloot <data_type> NULL;
 
Thankx Mates , I've found backup from start server. Thanks GUys ;p

PS:
ALTER TABLE <your table>
ALTER autoloot SET DEFAULT 0;

what is "your table"?
 
Last edited:
LUA:
CREATE TABLE `player_autoloot` (
  `player_id` int NOT NULL,
  `autoloot_list` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `player_autoloot`
--

INSERT INTO `player_autoloot` (`player_id`, `autoloot_list`) VALUES
(2192, 'dhpó&'),
(2193, 'dhpó&'),
(2194, 'dhpó&'),
(2195, 'dhpó&'),
(2196, 'dhpó&'),
(2197, 'dhpó&'),
(2198, 'dhpó&');

Maybe
ALTER TABLE <player_autoloot>
ALTER autoloot SET DEFAULT 0;

? this UP doesnt work
 
Back
Top