First I imported the "auth" and "characters" .sql files. Auth to auth and charactes to charactes. Then I imported TDB_full_world_335.60_2015_11_07.sql to world and that error poped up..
But nvm I fixed it. I went to "my.cnf" and changed "max_allowed_packet = 1M" to 500M