How to grant on multiple databases? MySQL.
Something like
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE ON \'databasesprefix%\'.* TO testuser@localhost ID
You just need to use backticks instead of quotes around the db_name prefix.
I think this will work:
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE ON `databasesprefix%`.* TO testuser@localhost IDENTIFIED BY 'testpasswd';