how to change WordPress admin username

For security reasons, it is important. that default WordPress admin username to be changed. In the WordPress backend itself, there is no way to do this. This is easily performed in a MySQL admin program such as phpMyAdmin by following code:

UPDATE wp_users
SET user_login = 'newname'
WHERE
user_login = 'admin' ;

Please replace table prefix with your own if set to different then “wp_”.