I'm unable to create a MySQL database schema and assign user privileges via PDO, I can't find anything wrong with my code:
$db = $this->pdo->prepare( 'CREATE SCHEMA :dbName;
GRANT ALL ON :dbName.* TO :dbUser@`localhost` IDENTIFIED BY :dbPassword' );
$db->bindParam( ':dbName', $dbName, PDO::PARAM_STR );
$db->bindParam( ':dbUser', $dbUser, PDO::PARAM_STR );
$db->bindParam( ':dbPassword', $dbPassword, PDO::PARAM_STR );
$db->execute();
var_export($db->errorInfo());
returns: 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'\'test\'; GRANT ALL ON \'test\'.* TO \'test\' at line 1'