User Tools

Site Tools


wordpress_password_reset

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wordpress_password_reset [2010/10/30 23:49] k2patelwordpress_password_reset [2020/08/10 02:35] (current) – external edit 127.0.0.1
Line 7: Line 7:
 then then
    echo "Usage: $0 <Blog Location> <new Password> [<Admin User>]"    echo "Usage: $0 <Blog Location> <new Password> [<Admin User>]"
 +   exit 1
 elif [ $# -lt 3 ] elif [ $# -lt 3 ]
 then then
Line 14: Line 15:
 fi fi
  
-RESET="UPDATE wp_users SET user_pass=MD5('$2') WHERE user_login='admin'"+RESET="UPDATE wp_users SET user_pass=MD5('$2') WHERE user_login='$WPUser'"
  
 cd $1 cd $1
wordpress_password_reset.1288482566.txt.gz · Last modified: 2020/08/10 02:29 (external edit)