<div>Obviously I'm sure. It created the file. But the file was blank. How can I do a mysqldump in mysql itself?</div>
<div>V<br><br></div>
<div class="gmail_quote">On Wed, Sep 2, 2009 at 8:13 AM, Nitebirdz <span dir="ltr"><<a href="mailto:nitebirdz@sacredchaos.com">nitebirdz@sacredchaos.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="h5">On Wed, Sep 02, 2009 at 06:43:12AM -0400, Victor Subervi wrote:<br>> Hi:<br>> I have the following python code:<br>> import os<br>> os.system("mysqldump -u root -pPASSWORD --opt spreadsheets > dump.sql")<br>
> This nicely creates the file...but the file is empty! The database exists<br>> and has lots of data, I double-checked it. If there is nothing wrong with my<br>> code, is there some way to do the same thing from within MySQL? Can I at<br>
> least print everything to screen and copy it? Where would I find my database<br>> in Windoze?<br><br></div></div>Are you sure the password you entered is correct?  I tested the code and<br>it worked fine for me.  However, when I used an incorrect password, it<br>
returned an error and did create an empty file, just as you describe.<br><font color="#888888"><br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>