In MySQL documentation for PASSWORD function:
The PASSWORD() function is used by the authentication system in MySQL Server; you should not use it in your own applications. For that purpose, consider MD5() or SHA1() instead.
Why we shouldn't use this function in our application?