Check if mysql allows login as root/nopassword before trying supplied credentials.
Merge pull request #3396 from adq/mysql

Check if mysql allows login as root/nopassword before trying supplied credentials.