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 revision Previous revision
Next revision
Previous revision
wordpress_password_reset [2010/10/30 19:49]
k2patel
wordpress_password_reset [2010/10/30 20:19]
k2patel
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.txt ยท Last modified: 2010/10/30 20:19 by k2patel