sql - How to translate this MySQL command to SQLite command? -
i have mediawiki instance uses sqlite database instead of mysql. standard documentation on resetting password explains how reset password mysql not sqlite database:
mysql salted (make sure both instances of "somesalt" same):
update `user` set user_password = concat(':b:somesalt:', md5(concat('somesalt-', md5('somepass')))) user_name = 'someuser';
how 1 translate suitable sqlite command?
the documentation not show command sqlite because has no built-in md5 function.
also long need change single password, compute md5 values manually on sqlfiddle:
select concat(':b:somesalt:', md5(concat('somesalt-', md5('somepass')))); :b:somesalt:e565ddf094ec99d4963cb2cb3d803d82
Comments
Post a Comment