There are several ways to change the admin username for your WordPress.

  1. Change by adding a new username then delete the old admin username.
  2. Change by editing the admin value in phpMyAdmin.
  3. This tutorial also covers how to change the admin username for WordPress MultiSite installation.

For a very long time, I refused to change the default admin username because I thought it can never be hacked. I changed my mind because after I started tracking logging attempts using the “Limit Login Attempts” plugin, a lot of the hacking attempts start with the “admin” username.

It is still very hard to crack the WordPress password but we want the crackers to not know our username too so here is how you can change your admin username.

Method 1: Using the creating a new username method (easiest):

  • Login to your WP admin interface => click on Users => click on Add New
  • Fill in your new login information then click on Add New User to create the login (remember to set Role as: Administrator)
  • Click on Users to go back to the user’s management page
  • Place your mouse pointer on the admin username then click on Delete
  • Check the field “atribute all posts and links to” and pay very careful attention that you select your new username under the drop-down box. This would place all your existing posts to the new user.  If you do not check this, all your posts will get deleted.
  • Confirm Deletion and you are done.

Method 2: Using phpMyAdmin

  • Launch your phpMyAdmin
  • Select your WordPress database
  • Click on the “wp_users” table
  • You should be able to find “admin” under the “user_login” column
  • Edit “admin” to anything you prefer for the new username
  • Done!

3. For MultiSite

In addition to performing the steps in Method 2 above, you need to edit a few more values to complete the username change.

  • Look for table “wp_sitemeta”
  • In the “meta_key” column, find the row which has the record “site_admins”
  • That same row should have another column called “meta_value”. In it, you should see a record which looks like this: a:1:{i:0;s:5:”admin”;}
    => 5 refers to how many characters in your username
    => admin is your old username
  • Change “admin” to your new username and change 5 to your new username value
    Example: a:1:{i:0;s:8:”bloguser”;}
  • Save and done!

{ 0 comments }

With WordPress 3.2 being released tomorrow, there is a new web hosting requirement for PHP and MySQL.

PHP = PHP 5.2.4 or later
MySQL = MySQL 5.0

Make sure your host supports these!

{ 2 comments }

Dealing With Comment Spam

December 11, 2008

Spam comment takes up our precious time. This post has information on how to activate Akismet plugin to automatically flag spam comments…

Read the full article →

Upgrading WordPress 2.6.5 to WordPress 2.7

December 10, 2008

The WordPress team announced the availability of WordPress 2.7 today http://wordpress.org/development/2008/12/coltrane/

After checking through the features, I got really excited and must upgrade to WordPress 2.7 as soon as possible…

Read the full article →

WordPress Smilies

December 9, 2008

On the post Playing with Permalink, I happened to use 3 smilies. Out of those 3, I only knew the text equivalent to one of them :)

After digging the WordPress Docs, here is the list…

Read the full article →

Playing with Permalink

December 9, 2008

By default, WordPress URLs are in the format of:
http://blogtipper.com/index.php?page_id=1

This looks really cool and I love it but as I play more with my blog, I experienced an inconvenience…

Read the full article →

How to change the sort order of the Pages?

December 8, 2008

After creating my “archives”, “useful links” and “about” pages => the pages got displayed sorting by letter or the “about” page got displayed first => then “archives” then “useful links”.

I was interested in getting the “archives” page displayed first so…

Read the full article →

How to make post summary on the main page?

December 6, 2008

When you write a “Post” => scroll down => click on “Excerpt” under “Advanced Options” => the excerpt menu will get expanded with a form => you would enter the post’s summary into that form => this summary will …

Read the full article →

Glossary of Blogging Terms

December 6, 2008

Audioblog: A blog where the posts consist mainly of voice recordings.

Aggregator: A program or webpage which enables users to read the content of blogs using RSS or Atom Feeds…

Read the full article →

What is Blog?

December 6, 2008

What is blog? Why is it so popular? What is blog history?

Blog, shortened from “web + log”, is a personal or corporate website in the form of an online journal, with new entries appearing in sequence as they are written, especially as dealing with reflections or opinion…

Read the full article →