"manage.py dbshell" broken for MySQL on Windows
|Reported by:||anonymous||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||1.0|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
If you run "manage.py dbshell" on Windows when DATABASE_ENGINE is set to "mysql" it looks like it doesn't correctly pass the database details on the command line because it gives this error:
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
Strangely it doesn't give this error until just *after* the script has finished and you're back at the cmd prompt. So it looks like it's running mysql in the background! Manually running "mysql --host=blah --user=blah --password=blah dbname" works fine.