MySQL database permissions needed for unit tests?

Trying to run ./ mysql I’m getting lots of

Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1044] Access denied for user 'oc_admin7'@'localhost' to database 'oc_autotest'

where the integer after oc_admin keeps incrementing. My DB is reasonably locked down, but opening it like this has not helped:

grant all privileges on oc_autotest.* to '%'@'localhost';

The oc_autotest db was created by the script, however. What permissions do I need to have to get this to work?