MySQL Forums
Forum List  »  Newbie

Variable for mysqldump
Posted by: Doug Hairfield
Date: March 28, 2005 10:29AM

I am trying to run mysqldump in a bash file and I want to name the output of the file with todays date.

#!/bin/bash

date=$(date +%m_%d_%y)

mysqldump --add-drop-table etrials_dev > $date.sql

But I am getting:

mysqldump: ERROR: unknown variable 'local-infile=1'

Any ideas?

Options: ReplyQuote


Subject
Written By
Posted
Variable for mysqldump
March 28, 2005 10:29AM
March 28, 2005 11:15AM
March 28, 2005 09:07PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.