travis-ci/travis-ci — Issue #324: Create a database denied for test user
Author: Sannis
Created: 2011-11-22 11:48:44+00:00
State: open

How can I do this? It is needed for my tests.

I've tried do do it this way:

$ mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
$ mysql -e 'CREATE DATABASE IF NOT EXISTS test_denied;'
$ mysql -e 'GRANT RELOAD ON test_denied.* TO test@0.0.0.0;'

But:

ERROR 1044 (42000) at line 1: Access denied for user 'vagrant'@'%' to database 'test_denied'