20140415 renaming a wordpress org user - plembo/onemoretech GitHub Wiki

title: Renaming a WordPress.org user link: https://onemoretech.wordpress.com/2014/04/15/renaming-a-wordpress-org-user/ author: phil2nc description: post_id: 7399 created: 2014/04/15 15:02:46 created_gmt: 2014/04/15 19:02:46 comment_status: closed post_name: renaming-a-wordpress-org-user status: publish post_type: post

Renaming a WordPress.org user

User's internal company wide system ID changed and now he wants to use it to log into an internal WordPress blog. The gui declares "Usernames cannot be changed". Right. Everyone who administers a WordPress blog should spend a little time getting to know its database schema. To change someone's username all you have to do is update the appropriate table in the database.

mysql> update wp_users set user_login = 'novamundo' where ID = '99';

Where user_login is the field that holds the displayed username and ID is the unique internal numeric identifier for the user's account. While you're at it you could also change the user's nickname, e-mail address, password, etc. Why this information isn't readily available in the WordPress documentation or the support forums is beyond me. Well, not really. Most people who work with WordPress don't have shell access, and even if they did would be gripped with fear at the sight of a mysql prompt. If your site is on a provider who doesn't allow shell access you're going to be forced to go back and study all those work-arounds in the forums (wordpress.com does give you the ability to change your username via their account management gui). That's too bad, because I think they'd find that being able to navigate around the underlying system would make their lives infinitely easier.

Copyright 2004-2019 Phil Lembo