Database navigation guide
Where is the WordPress users table?
Find the correct wp_users-style table before you inspect or recover an authorized account. The name depends on the site’s table prefix and, in multisite, the site ID.
wp_users is only the default.A custom installation prefix changes the table name, for example to client_users.
usermeta is a companion table.Roles and capabilities usually live in the matching _usermeta table, not in _users.
Network users are shared, while sites can use numbered table prefixes for their own content.
Start with the configured table prefix
The most reliable answer is in the site’s wp-config.php. Look for the line that sets $table_prefix. If it is wp_, the expected users table is wp_users. If it is client_, it becomes client_users.
$table_prefix+2 Add users→3 Open matching table
Do not assume the database is named after the domain, and do not use a table merely because it contains the word “users.” Hosting accounts often contain staging, old, and unrelated WordPress installations in the same database server.
Recognize the table you need
wp_usersDefault single-site users tableConfirm that $table_prefix is wp_.client_usersCustom-prefix users tableCheck for $table_prefix = 'client_';.wp_usermetaMetadata for the matching users tableUse it to inspect roles only after identifying the right user.wp_2_postsA multisite site tableThe number identifies a site; do not infer the shared users table from posts alone.Find it in phpMyAdmin, step by step
- 01Open the database named in
wp-config.php.Match
DB_NAMEto the database selector before browsing any tables. - 02Find the prefix, then locate
_users.Use the configured prefix as the first filter. A table ending in
_usersshould have fields such asID,user_login,user_email, anduser_pass. - 03Confirm the exact authorized account.
Search by
user_loginoruser_email, never by a row number or a display name that might be duplicated. - 04Leave unrelated tables alone.
Do not edit
usermeta, roles, or site content merely to recover a password. Make the smallest necessary change.
Use WP-CLI when you have shell access
WP-CLI can read the active configuration, which removes much of the naming guesswork. These commands are read-only and help confirm the prefix and tables WordPress recognizes.
wp db prefix
wp db tables --all-tables-with-prefix
Before you edit a user record
- Confirm you are administering the correct site and have a recoverable backup.
- Match
DB_NAMEand$table_prefixto the table you opened. - Identify the authorized user by login or email, then change only the required field.
- Prefer the normal reset route or WP-CLI before a direct database edit.
Primary references: WordPress database table-prefix reference and WP-CLI: wp db tables.