Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Wordpress and MD5 Passwords

  • 17-01-2011 09: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