Commits

Josh Ourisman  committed 11fb9a0

successfully working with authenticated MySQL databases

  • Participants
  • Parent commits f533c52

Comments (0)

Files changed (1)

File adamanteus.py

 
     def dump(self):
         # mysqldump -u 'username' -ppassword --opt database > $FILENAME
+        output_file = "%s/%s.sql" % (self.path, self.database)
+        
         dump_options = ['mysqldump']
         if self.username is not None:
             dump_options.append("-u%s" % string.strip(self.username))
             dump_options.append('-p%s' % self.password)
         dump_options.append('--opt')
         dump_options.append(self.database)
+        dump_options.append('--result-file=%s' % output_file)
         call(dump_options)
             
 def main():