Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Wordpress and MD5 Passwords

  • 17-01-2011 9:30am
    #1
    Closed Accounts Posts: 144 ✭✭


    I want to take a mysqldump of a wordpress database and insert a new user directly in that text file.

    If I put an MD5 password directly into users:
    $P$BmLdvl3RJNosEkpUta2bjkiJX2fd1X0
    INSERT INTO `wp_users` VALUES (1,'admin','$P$BmLdvl3RJNosEkpUta2bjkiJX2fd1X0','admin','fakemail1@gmail.com','','2010-10-27 10:02:14','',0,'admin');
    

    will that MD5 password be readable by wordpress?


    Thanks All


Comments

  • Registered Users, Registered Users 2 Posts: 1,657 ✭✭✭komodosp


    I would say so, but why not just run that sql statement and see if it works?


  • Registered Users, Registered Users 2 Posts: 241 ✭✭fcrossen


    I want to take a mysqldump of a wordpress database and insert a new user directly in that text file.

    If I put an MD5 password directly into users:
    [.....]
    will that MD5 password be readable by wordpress?

    Yes, but it is hard to see why you would do this.

    Better to use Wordpress functions from your theme or plugin:
    - http://codex.wordpress.org/Function_Reference/wp_create_user

    This method will "play nice" with other plugins (have a look at how the API works on http://codex.wordpress.org/Plugin_API).


Advertisement