MySQL Forums
Forum List  »  Newbie

Re: mysqldump and ~/.my.cnf
Posted by: Peter Brawley
Date: March 03, 2010 10:32AM

> it is --database database_name (without equals sign)

mysqldump has three syntaxes. None allows --database database_name.

Syntax 1 is:

mysqldump [options] databaseName [table1 ...]

Syntax 2 is:

mysqldump [options] -B | --databases [options] dbName1 [dbName2 ...]

Syntax 3 is:

mysqldump [options] -A | --all-databases [options]

To specify one database use syntax 1.

mysqldump does not accept database= in the [mysqldump] section of my.cnf/ini.

PB
http://www.artfulsoftware.com



Edited 1 time(s). Last edit at 03/03/2010 10:41AM by Peter Brawley.

Options: ReplyQuote


Subject
Written By
Posted
February 18, 2010 05:40PM
February 22, 2010 09:30PM
March 02, 2010 09:12PM
Re: mysqldump and ~/.my.cnf
March 03, 2010 10:32AM
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.