Improve compatibility with additional mysql installations.

Some mysql debian packages do not grant mysql user as many permissions, and
we need to add them.

@e0d @jzoldak