Comment on How can I set myself as a site admin?
vpzom:
UPDATE person SET is_site_admin=TRUE WHERE id=1
(assuming 1 is your user ID)