After this , Hammurabi was in control of most of Mesopotamia .
In just a few years , Hammurabi had succeeded in uniting all of Mesopotamia under his rule .