Another little bit, I didn't mention, the => should all be aligned at the same column, so:
          mysql_privileges => 'ALL',
          mysql_password   => 'pwd',
          mysql_db              => 'db1',
(You can copy and paste the code fragment on a test .pp file and run puppet-lint on it to verify everything... )