Saturday, December 29, 2012

Re: Problem with auto tests Get an error creating the test database: (1044, "Access denied for user 'viewbank_django'@'localhost' to database 'test_viewbank_django'")

Hey Jeff,

There sure is. Just specify a "TEST_NAME" key in the database configuration dictionary and you're good to go.


Cheers,
Ryan

On 29/12/2012, at 7:27 AM, Jeff <jeffc@ccmail.co> wrote:

When I run the command - "python manage.py test polls" I get the following error - error creating the test database: (1044, "Access denied for user 'viewbank_django'@'localhost' to database 'test_viewbank_django'")

I am using a shared server that will only allow me to create a database prefixed with viewbank_.

Using the MYSQL client I can create viewbank_django_test or any variation I like as long as it starts with viewbank_.

Is there a way to change the way django names the test database?

Thanks in advance
Jeff

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/oxBvQnPWaJgJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment