Oddly enough, I disagree with most here about using a gun in such a situation. Having two long knives would be much, much more effective.
Holding the handles in such a way that the blades are concealed behind your forearms, a single person could pass through a moving mob quickly, leaving substantial and life-threatening gashes on many of those he passed by. Likewise, they could be used to effectively block any attacks while still seriously injuring the attackers.
Knives do not run out of bullets, no do they give off a loud report that serves as warning to others. Knife wounds are very serious, and are much more difficult to treat even with prompt medical care, resulting in a significantly higher mortality than do gunshots.
And knives generally do not harm innocent bystanders or those not targeted by the knife user.