Home > How & Why, Interactive knowledge & Tips n Tricks & other reference stuff > WordPress : How to register a user on local machine?

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

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

Amit Gupta

Hey! this is Amit Gupta (amty). By profession, I am a Software Eng. And teaching is my passion. Sometimes I am a teacher, as you can see many technical tutorials on my site, sometimes I am a poet, And sometime just a friend of friends...

  1. No comments yet.