puppetlabs / puppetlabs-mysql

MySQL Puppet Module / Manifests + Types & Providers
Apache License 2.0
380 stars 796 forks source link

mysql_grant fails with UTF-8 error #1586

Open tuxmaster5000 opened 1 year ago

tuxmaster5000 commented 1 year ago

Describe the Bug

This simple code will fails.

mysql_grant { "${name}@${host}/${database}.${table}":
    user       => "${name}@${host}",
    privileges => $rights,
    table      => "${database}.${table}"
  }

Expected Behavior

Working code

Steps to Reproduce

Run the code above

Environment

Additional Context

Error message:

Error: Could not prefetch mysql_grant provider 'mysql': invalid byte sequence in UTF-8