Correctly fetch length of user and host fields in MySQL tables

Parsing text output is broken and we can get these lengths directly from
information_schema.

See also pull request #1160

Signed-off-by: Michal Čihař <michal@cihar.com>