migthegreek.com

Change Your WordPress Admin Login

Thursday 7th August, 2008 Category: Developer

WordPress

Any WordPress installation will conveniently include an administrator account with the username 'admin'.

Now the fact that there is no admin option to change this username to one of your own choice seems to be a rather obvious security flaw. With every WordPress installation having the same default admin account, a potential hacker need only break your password.

Enter the Database

The quickest solution is to simply change the username in your database. That may sound intimidating if you don't have the technical know-how to do so, but it is in fact relatively simple. Your web host most probably has phpMyAdmin installed as its MySQL administration tool. If you are unsure, ask your host.

How to change the admin account using phpMyAdmin:

  1. Once in phpMyAdmin, ensure your WordPress database is selected.
  2. From the list of tables, select wp_users (the default table prefix is wp_, but you may have changed this during your original installation).
  3. Click Browse to view the rows in the table.
  4. The first row should be your 'admin' account, as it was the first created. Click the Edit button for this row.
  5. In the user_login field, change 'admin' to a new login name of your choice (perhaps opt for something fairly unconventional).
  6. Click Go to save the changes.

You can now login to your WordPress administrative account using the new username. Your password will remain the same.

Alternative Solution

If you are somehow unable to complete the above, or are just too worried about editing your database entries directly, there is always this plugin, which will do the work for you:

Change Admin Username Plugin

Share: StumbleUpon Digg Facebook Reddit Delicious FARK

No Comments

Be the first person to comment on this post.

Leave a Reply

Anti-spam (please type the answer)

Anti-spam equation =

Top