In the first post of this series on securing your WordPress files from intruders we learned why it’s important to create a strong password and how to add a layer of protection for your login page by use of the Login LockDown Plugin.

Today I want to show you how to change the default “admin” username WordPress gives us. This is very important as it’s just one more thing an attacker will have to figure out in order to access your files through the login page. The more difficult you make it, hopefully the more likely they will move on.

changing your username

You’d think the creators of WordPress would make changing your username easy - but it’s not.

Changing your password, no problem. Changing your username, well . . . not as easy. So let’s do this one together and if you have any questions, feel free to comment below.

back up your database

The very first thing you need to do is back up your WordPress database. This is a simple task with the Automatic WordPress Database BackUp Plugin. Do not skip this step as we will be working on your . . . dare I say it - database - and if you make a mistake, you’ll want to be able to fix it.

The screenshots shown below are taken from the eVentureBiz Web Hosting Control Panel (the preceding link will open a demo control panel account in a new window if you wish to follow along in real time).

Control panels vary but most have the same functions and should be somewhat similar.

Step 1 - Find Your MySQL Databases Icon

Locate your MySQL icon Log into your web hosting account and locate your MySQL Databases icon and click it to view your databases.

Step 2 - Log Into Your Database

The next step is to locate which database your WordPress blog is using and log into it. Then find your WordPress tables.

2a) Locate which database you’re using.

log into your database

2b) Log into phpMyAdmin or whatever program you use to access your database.

log into phpMyAdmin

2c) Click on Databases.

log into your database

2d) Click on the database your WordPress installation uses.

log into your database

Step 3 - Locate & Edit The wp_users Table

3a) If you haven’t changed your database prefixes for WordPress already (next lesson), then look for the table wp_users and click on the browse button as indicated by the picture below.

locating your wordpress tables

3b) Click the pencil.

edit your username in the WordPress database

3c) In the user_login field, you can change your username from admin to a new username. Then click “Go.”

edit your username in the WordPress database

To

edit your username in the WordPress database to the new name

Congratulations! You’ve just changed your WordPress Username and made it more difficult for a would-be intruder to gain access to your blog files. Now go test it out.

I know it sucks, but I should add that these tutorials are given with you understanding this blog’s disclaimer.

Please let me know if you have any questions in the comment section below. Wednesday we’ll take a look at customizing your database a little and make your blog installation not so run-of-the-mill.

Share And Enjoy
    del.icio.us Digg StumbleUpon Technorati Subscribe