Moving WP Database to another hosting server

After moving WP website to another server, you’ll try to login to Admin Control Panel, you might see this error “You do not have sufficient permissions to access this page.” This is how to fix it:

UPDATE `{%TABLE_PREFIX%}usermeta` SET `meta_key` = replace(`meta_key`, 
'{%OLD_TABLE_PREFIX%}','{%NEW_TABLE_PREFIX%}');
UPDATE `{%TABLE_PREFIX%}options` SET `option_name` = replace(`option_name`,
'{%OLD_TABLE_PREFIX%}', '{%NEW_TABLE_PREFIX%}');