Title: retrieve admin username without phpmyadmin or database access?
Last modified: August 20, 2016

---

# retrieve admin username without phpmyadmin or database access?

 *  [iansane](https://wordpress.org/support/users/iansane/)
 * (@iansane)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/retrieve-admin-username-without-phpmyadmin-or-database-access/)
 * Hi,
 * I’m trying to retrieve information for a user who has forgotten their admin password,
   username, and apparently the email doesn’t work either for the forgot password
   link.
 * I think they used something besides the default “admin” for the username.
 * I put this code in the functions.php to reset the password as suggested in the
   codex
    `wp_set_password('temppassword',1);`
 * But I can’t tell if it’s working because it doesn’t work with “admin” so I’m 
   guessing there is no “admin” user.
 * Is there something similar to the function above to reset the administrator user
   name?
 * Thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [iansane](https://wordpress.org/support/users/iansane/)
 * (@iansane)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/retrieve-admin-username-without-phpmyadmin-or-database-access/#post-2732233)
 * Well, I finally was able to get the database access I needed so the problem is
   fixed but if anyone knows a way to do it without db access for future use I appreciate
   it.

Viewing 1 replies (of 1 total)

The topic ‘retrieve admin username without phpmyadmin or database access?’ is closed
to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [iansane](https://wordpress.org/support/users/iansane/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/retrieve-admin-username-without-phpmyadmin-or-database-access/#post-2732233)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
