[Tutor] How to call mysqlcommand in Python , "mysqldump for backup "

John Joseph jjk_saji at yahoo.com
Tue Dec 27 14:07:35 CET 2005


Hi 
    I am trying to execute some MySQL commands using
some python scripts 
  I want to do a “mysqldump” of my database “john” to
a file backup.date.sql
    the normal command  to take a dump is 
             mysqldump  john    > backup.sql

  I tried python , by importing 
         “import os”
        but  I am stuck in  how to call “mysqldump” in
python and execute it 
                  Help and guidance requested
                                       Thanks 
                                            Joseph 



		
___________________________________________________________ 
NEW Yahoo! Cars - sell your car and browse thousands of new and used cars online! http://uk.cars.yahoo.com/


More information about the Tutor mailing list