$sql = "GRANT ALL ON $db.* TO ?@? IDENTIFIED BY ?"; $dbh->do($sql, {}, $user, $host, $password);