MySQL удалить все, кроме
DELETE FROM mysql.user where user NOT IN (1,2)
Mysterious Macaque
DELETE FROM mysql.user where user NOT IN (1,2)