Skip to content

Commit

Permalink
Minor fix in backup of mysql databases.
Browse files Browse the repository at this point in the history
  • Loading branch information
aouyar committed Mar 12, 2012
1 parent 10e2c18 commit fac414c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybackup/plugins/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def dumpDatabase(self, db, data=True):
dump_path = os.path.join(self._conf['job_path'], dump_filename)
args = [self._conf['cmd_mysqldump'],]
args.extend(self._connArgs)
if db == 'information_schema':
if db in ('information_schema', 'mysql'):
args.append('--skip-lock-tables')
if not data:
args.extend(['--no-create-info', '--no-data' ,'--databases'])
Expand Down

0 comments on commit fac414c

Please sign in to comment.