title: GRANT on db with a separator in name not working
body: <p>I have a problem on my Debian server with MariaDB on it.
  I'm trying to grant all privileges to a user ('agricoop') on my database called extranet-agricoop.</p>
  <p>I'm writing : GRANT ALL PRIVILEGES ON extranet-agricoop.* TO 'agricoop'@'localhost';
  I get the error message : &quot;You have an error in your SQL syntax [...] near 'extranet-agricoop.* TO 'agricoop'@'localhost'' at line 1&quot;</p>
  <p>It worked for my other users on other table but just not for that one. If I select ‘*.*´ it works so for me the problem seems to come from the name of the db. I've tried to escape the separator but still not working.</p>
  <p>Have you got any idea ?
  Thanks :)</p>