[Tutor] Zipping files and Mysql

Christopher King g.nius.ck at gmail.com
Thu Jun 30 21:32:33 CEST 2011


/myfiles/my_db/ needs to be a string
that right there is trying to divide nothing by the variable called myfiles,
divided by my_db, divide by nothing

On Mon, Jun 27, 2011 at 3:45 PM, <gagnrath at verizon.net> wrote:

> I am trying to write a script that will dump a mysql db and then zip the
> file.
>
>
> I do know about mysqldb, but I was wondering if there is anything native to
> the libraries that will allow me to do this without using a seperate piece.
>   Then after I gather the DBs, I need to zip them.   I wrote the following,
> but wanted to know if I am heading in the correct direction.
>
> zipfile.zipfile(/myfiles/my_db/, w, zip_stored)
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110630/5f3698fe/attachment.html>


More information about the Tutor mailing list