uDe Posted July 7, 2013 Posted July 7, 2013 Hello, May I ask how to change players password from SQL? My server is using MD5 password. Quote
Brian Posted July 8, 2013 Posted July 8, 2013 You can also search by their login ID: UPDATE `login` SET `user_pass` = MD5('NEW_PASSWORD') WHERE `userid`='THEIR_LOGIN_ID'; 2 Quote
Patskie Posted July 7, 2013 Posted July 7, 2013 Can make everything with encrypted data using MD5() UPDATE `login` SET `user_pass` = MD5('"+<NEW PASSWORD>+"') WHERE `account_id` = '"+getcharid(3)+"'"; 1 Quote
Winz Posted July 10, 2013 Posted July 10, 2013 *Adding: If this is an in-game NPC script, then make sure that this script will not be excecuted more than one time. Have a nice day! Quote
uDe Posted July 11, 2013 Author Posted July 11, 2013 Can make everything with encrypted data using MD5() UPDATE `login` SET `user_pass` = MD5('"+<NEW PASSWORD>+"') WHERE `account_id` = '"+getcharid(3)+"'"; Thank you. You can also search by their login ID: UPDATE `login` SET `user_pass` = MD5('NEW_PASSWORD') WHERE `userid`='THEIR_LOGIN_ID'; I'm using this, easy to update from sql.. Thank you to both of you.. Quote
Darkpurple Posted August 31, 2013 Posted August 31, 2013 *Adding: If this is an in-game NPC script, then make sure that this script will not be excecuted more than one time. Have a nice day! what does it mean,sir? Quote
Brian Posted September 3, 2013 Posted September 3, 2013 Well technically, you could use an in-game NPC to change your login password as many times as you want. It would all work fine, and your password would be whatever you set it to the last time you used the NPC. Maybe Winz was thinking of this query trunk/sql-files/tools/convert_passwords.sql that converts all passwords to MD5 hashes: UPDATE `login` SET `user_pass`=MD5(`user_pass`);^ do NOT execute that more than once, or else you would be converting MD5-passwords to hashes of MD5 hashes. Quote
Question
uDe
Hello,
May I ask how to change players password from SQL? My server is using MD5 password.
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.