WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Change initial account username in database? (6 posts)

  1. tbronson
    Member
    Posted 4 years ago #

    I created a WP blog with username "admin" and now I want to change username "admin" to something else, without losing the posts attached to it. Can I change the name directly in the database (e.g. via phpMyAdmin)? Will that break anything?

  2. Chris_K
    Member
    Posted 4 years ago #

    Be sure to update your wp-config.php accordingly and you should be OK.

  3. If you mean changing the "admin" user name, you won't need to edit the wp-config.php file. Just backup your database, then access it via phpMyAdmin and go to the wp_users table. Click the edit button (the pencil icon) next to your user and change what is entered into the user_login field.

  4. Chris_K
    Member
    Posted 4 years ago #

    Apologies. I misread the question.

  5. tbronson
    Member
    Posted 3 years ago #

    I changed the user_login field in the wp_users table, using phpMyAdmin. Worked fine!

    Thanks!

  6. Rab
    Member
    Posted 3 years ago #

    You can also create another user, then delete the Admin user. It asks what to do with the Admin account's posts. Here you can select to move them to the new user you created.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags