Splash of Style...Macs, Photography, Design, and other Passions

Changing Admin User Name for Better Security in WordPress

August 31, 2009 by debbie T | WordPress

It’s been advised to change the default “admin” user name on WordPress installs, and it sounded like a great idea, until I tried to do it.

I found instructions, but details on how to actually edit the mySQL table were not explained. I tried to figure it out, but it just seemed too complicated.

The instructions over at guvnr.com were very helpful, but I didn’t want to start a new admin username, and delete the default user name, when I had so many older posts.

Well, I figured it out. WordPress allows you to move your posts, pages, etc to a different user! Yay!

Add a new user with Admin privileges.
Go to Edit Posts and select all posts on the first page
Choose “Edit” from the Bulk Edit pull down menu and hit the Apply button
In the Bulk Edit editing area, choose your new user account from the Author pull down menu.
And lastly, hit the “Apply” button.

Go through each page of posts and repeat.

Awesome! I love WordPress!

ETA: hahaa, okay, I admit I am a big dope. I went through the above steps on one of my WordPress. After all posts were moved to the new user, it was time for me to delete my original admin user account.

I guess when you delete a user, WordPress asks you if you want to attribute all posts to a new user, and gives you the opportunity to do so.

Oh well, I guess you all can ignore this post! haha!

One last note: Just make sure before you delete that you are logged out of the original admin account and logged in to the new one. And for safety, BACK UP your database first!!! Just in case!

Commments are closed for this article.