Create random password in mysql

I coded my script but i want to change password with mysql. (Maybe want to change a lot row). My password length have 8 character.

[MYSQL]

UPDATE mycostumerdata SET password=SUBSTRING(MD5(ROUND(RAND(9999)*1000)),1,8)
[/MYSQL]

You can add any coloum for better random password.

Popularity: unranked [?]

No tags for this post.