The difference from the original from @feix, is that the user must set the file location as a parameter. The advantage is from a forensic perspective, analysts can use it without editing the source code. Works in Windows or Linux, did not try in iOS virus operating system.
License is the same, all credits to @feix
python.exe .\read_mysqld_user_myd.py -s "\user.MYD"
parse host
user
pass
from ${datadir}/mysql/user.MYD