unable to access network admin of a blog

The problem was that the username of the super admin was changed and this did not reflect in other blogs of the system. The below query solved my problem,

update wp_sitemeta set `meta_value` = 'a:1:{i:0;s:6:"adminusername";}' where `meta_key` = 'site_admins'

and

update wp_sitemeta set `meta_value` = '[email protected]' where `meta_key` = 'admin_email'