mysql> mysql> select OLD_PASSWORD("text"); +----------------------+ | OLD_PASSWORD("text") | +----------------------+ | 379146d92233edb1 | +----------------------+ 1 row in set (0.00 sec)