Problem w/ mysqldump

Nitebirdz nitebirdz at sacredchaos.com
Thu Sep 3 07:32:20 EDT 2009


On Wed, Sep 02, 2009 at 04:45:02PM -0400, Victor Subervi wrote:
>
> I tried running it like you said, got this error:
> 'mysqldump' is not a recognized internal or external command.
> If I could just figure out in what file the data were stored, I could copy
> it and try it in another computer. Any ideas?
> 

OK, that makes more sense now.  It's not truly a Python problem at all,
but rather an issue with the MySQL install/config on Windows.  As
somebody else pointed out, you are supposed to run the 'mysqldump'
command from the command prompt, which in the case of Windows is the
"cmd.exe", as far as I remember:

  Start --> Run --> command


I'm not familiar enough with Windows though.  I haven't run it in years.
However, the following URL may be of some help:

http://www.vbulletin.com/forum/showthread.php?t=68822


Judging by that, MySQL's binaries may not be in your path by default
when you run it on Windows.  If that's the case, you may have to add it
(search around for info on how to add new directories to your path in
Windows' terminal) or simply specify the absolute path to the command in
the Python script, instead of just passing 'mysqldump'.  

This other exchange from a forum may also help:

http://forums.mysql.com/read.php?35,144934,144960#msg-144960





More information about the Python-list mailing list