Hey All,
I've had this problem for a while and still can't figure it out.  I
have django setup and working on my windows machine.  I can run
manage.py syncdb and other commands, but for some reason the dbshell
command doesn't work.  It just gives this error:

> manage.py dbshell
> ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using 
> password: NO)

I modified django/db/backends/mysql/client.py like another poster did
to see what credentials were being passed, and I got this:

client.py:
    ...
    print "self.executable_name:", self.executable_name
    print "args:", args
    os.execvp(self.executable_name, args)
output:
> self.executable_name: mysql
> args: ['', '--user=test', '--password=test', 'test']
> ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using 
> password: NO)

I also tried the following lines, with the same results:
    print "os.execlp:"
    os.execlp(self.executable_name, "-?")

    print "os.execvp:"
    os.execvp(self.executable_name, ["-?"])

These lines should simple call "mysql.exe" and print out the help
file, but instead it seems like mysql.exe is always running without
any arguments.

Does anyone have a clue why mysql.exe isn't seeing the arguments?  I'd
love to figure this out and be able to use dbshell from now on.
Thanks!
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to