Bug 843423

Summary: mysql -D results in showing the usage page ( EASY FIXABLE )
Product: [Fedora] Fedora Reporter: customercare
Component: mysqlAssignee: Tom Lane <tgl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 16CC: hhorak, tgl, thoger
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-31 14:28:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description customercare 2012-07-26 09:49:23 UTC
Description of problem:

"mysql -D dbname ..." results in showing the usage page, instead of using the argument as databasename . If the "-D" gets removed from the cmdline, it works as expected. 

Version-Release number of selected component (if applicable):

5.5.25a

How reproducible:

100%

Steps to Reproduce:
[root@ mysqldumps]# mysql -u root -pXXXXXXXXX –D dbname < traffic_ip
  
Actual results:

[root@ mysqldumps]# mysql -u root -pXXXXXXX –D dbname < traffic_ip
mysql  Ver 14.14 Distrib 5.5.25a, for Linux (x86_64) using readline 5.1
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Usage: mysql [OPTIONS] [database]
  -?, --help          Display this help and exit.
....

Expected results:

Importing the SQL , as -D is mentioned in the shown help as the Databasename:

  ...
  -T, --debug-info    Print some debug info at exit.

  -D, --database=name Database to use.

  --default-character-set=name
                      Set the default character set.  
  ...

Comment 1 Tomas Hoger 2012-07-31 12:46:01 UTC
(In reply to comment #0)

> [root@ mysqldumps]# mysql -u root -pXXXXXXXXX –D dbname < traffic_ip

Try using -D and not –D.  The above seems to be using some unicode dash character and not minus.  Try typing it in manually if this was copy-n-pasted from somewhere.

Comment 2 customercare 2012-07-31 14:28:06 UTC
it seems like this is true. 

We are sorry for reporting it.