Flush privileges not requred. Check if user already exists by host too, now that the client is a parameter too.
A couple of first CHARP functions for mysql.
Prettier and more useful dry run output with line numbering for error debugging.
A few more mysql definitions to parametrize and overcome lack of type domains.
Aesthetic.