WordPress : How to register a user on local machine?
September 16th, 2010
58 views
Leave a comment
Go to comments
If you are developing wordpress blog, you might need to do testing for registered users like
- Whether non registered users are able to view blocked posts
- Whether restricted contents are visible to members only.
- Which are options on dashboard accessible to various users?
- etc
Better you do all testing locally including user registration.
To register a user on local copy of your wordpress, either you need to configure SMTP server locally. So mails can be send from your machine. Or you can go for a very small trick mentioned below.
1
Let wordpress generate whatever password it generates. You just select password that you want, say “article-stack”. Now calculate its MD5 value.

2
Open wordpress database. For this
- Type http://localhost/phpmyadmin/ in Internet browser.
- You can see the list of database in left side bar. You need to identify which one is used by your wordpress installation
- Just click on appropriate database name.
- You’ll see list of wordpress tables in left side bar. All tables shall be start from “wp_” prefix.
- Select “wp_users” table. Change the password of desired user with calculated MD5 value.
