There are many thing changed in MySQL 5.6 which are related to
passwords:
- There is a new password hash algorithm (SHA-256)
- There is obfuscation for passwords with the .mylogin.cnf file.
- The option to store slave passwords in a database table.
- It's now possible to supply a password to START SLAVE.
But that's not what this blog post is about.
This blog post is a great new feature: Hiding passwords from your
log files, automatically.
MySQL 5.6 will by default hide passwords from the general log.
This is not just obfuscation as only the one-way hash will be put
in the log files. By setting log-raw=OFF you can disable password
hiding for the general log. The log-raw setting will only
influence the general log, so the passwords in the slow query log
and the binary logs will still be hidden.
With MySQL 5.5 this could be done manually by …