Hello
How do you change the password of user in bulk.
Please advise. Thanks.
Hello How do you change the password of user in bulk. |
You might need a php script to loop members and change their pass. Might take some time depends on resources. How many members you have? so much to do.... |
Each person to get the same password? or each person to get a different password read from a file? It is to cover all of members in the database or just a few? https://www.deanbassett.com |
Each person to get the same password? or each person to get a different password read from a file? It is to cover all of members in the database or just a few? Hello You mentioned this in a previous forum post but how do you change many ids in one sql query? UPDATE `Profiles` SET `Salt` = CONV(FLOOR(RAND()*99999999999999), 10, 36) WHERE `ID`='1'; UPDATE `Profiles` SET `Password` = SHA1(CONCAT(md5('New Admin Password'), `Salt`)) WHERE `ID`='1'; |
I hit report by accident. They really need to move that button. It's to close to the quote button. Anyhow. https://www.deanbassett.com |
Suggestion! Maybe this would be better WHERE `ID` IN('1', '2', '3', '4',........); WHERE `ID`='1' AND `ID`=2 AND `ID`=3 AND `ID`=4 AND `ID`=5 AND `ID`=6 AND `ID`=7 AND `ID`=8 AND `ID`=9 AND `ID`=10
so much to do.... |
Thanks Deano and Prashank25 Suggestion! Maybe this would be better WHERE `ID` IN('1', '2', '3', '4',........); WHERE `ID`='1' AND `ID`=2 AND `ID`=3 AND `ID`=4 AND `ID`=5 AND `ID`=6 AND `ID`=7 AND `ID`=8 AND `ID`=9 AND `ID`=10
|
Suggestion! Maybe this would be better WHERE `ID` IN('1', '2', '3', '4',........); WHERE `ID`='1' AND `ID`=2 AND `ID`=3 AND `ID`=4 AND `ID`=5 AND `ID`=6 AND `ID`=7 AND `ID`=8 AND `ID`=9 AND `ID`=10
Yup you can. But IN has a limit. But there is also a limit to the length of a query, so i guess it makes no difference. https://www.deanbassett.com |