uDe Posted July 7, 2013 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 400 Reputation: 5 Joined: 12/05/11 Last Seen: September 27, 2015 Share Posted July 7, 2013 Hello, May I ask how to change players password from SQL? My server is using MD5 password. Quote Link to comment Share on other sites More sharing options...
Brian Posted July 8, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted July 7, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 6 hours ago Share 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 Link to comment Share on other sites More sharing options...
Winz Posted July 10, 2013 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 1479 Reputation: 174 Joined: 12/14/11 Last Seen: November 21, 2016 Share 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 Link to comment Share on other sites More sharing options...
uDe Posted July 11, 2013 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 400 Reputation: 5 Joined: 12/05/11 Last Seen: September 27, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
Darkpurple Posted August 31, 2013 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 187 Reputation: 7 Joined: 09/04/12 Last Seen: May 9, 2022 Share 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 Link to comment Share on other sites More sharing options...
Brian Posted September 3, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share 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 Link to comment Share on other sites More sharing options...
Question
uDe
Hello,
May I ask how to change players password from SQL? My server is using MD5 password.
Link to comment
Share on other sites
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.