Monday, January 31, 2011

Re: django and mysql connection problem

On Mon, Jan 31, 2011 at 2:45 PM, cuteangel <gunjandhole@gmail.com> wrote:
>
> its my first project with django..i already tried the connection with
> sqlite.but now m using django's connection with mysql n m getting
> following error...
>
> ....
> _mysql_exceptions.OperationalError: (1049, "Unknown database 'd:/
> project/wogma/w
> ogma'")
>
> i did the commands in mysql as follows..i already created the wogma
> database just using create database n i granted the priviliges..in
> mysql. whts the prb??
>

You are specifying the DB name incorrectly for the mysql driver. It
should just be the name of the database as created in mysql, not the
path to some file/folder.

Cheers

Tom

--
You received this message because you are subscribed to the Google Groups "Django users" group.
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