MySQL Forums
Forum List  »  Newbie

mysqldump and ~/.my.cnf
Posted by: Charles Norton
Date: February 18, 2010 05:40PM

mysqldump is complaining that I have a bad --databases parameter -- I don't -- and it is because of my ~/.my.cnf file

[client]
host=localhost
user=amr
password=water.flow
database=h2o_amr

This file works fine for the other command line work I'm doing. Other than renaming the file, how can I alter this file or mysqldump, so the conflict does not occur?

amr@steamboy:~/bin$ mysqldump
Warning: mysqldump: ignoring option '--databases' due to invalid value 'h2o_amr'
Usage: mysqldump [OPTIONS] database [tables]
OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]
OR mysqldump [OPTIONS] --all-databases [OPTIONS]
For more options, use mysqldump --help

Data Processing Department
Town of Arlington
Arlington, MA

Options: ReplyQuote


Subject
Written By
Posted
mysqldump and ~/.my.cnf
February 18, 2010 05:40PM
February 22, 2010 09:30PM
March 02, 2010 09:12PM
March 03, 2010 10:16AM


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.