xbmc/xbmc — comment on commit 5ecc52506b8d068b11cf5a28341e2c7fde727be6
File:  line 0
By firnsy:

OK ... So i'll be reinstating custom names to support different db's for different profiles. The appropriate grant command to support such a setup would be to wildcard the version portion of your custom name. If you use mysql for video and music databases and they each have a common prefix (eg. "xbmc" then you could wildcard to the common prefix.

GRANT ALL ON `xbmc%`.* TO user@ip IDENTIFIED BY 'password';

Note the `backticks` surrounding the db name with wildcard.