Red Hat Bugzilla – Bug 843423
mysql -D results in showing the usage page ( EASY FIXABLE )
Last modified: 2012-07-31 10:28:06 EDT
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):
Steps to Reproduce:
[root@ mysqldumps]# mysql -u root -pXXXXXXXXX –D dbname < traffic_ip
[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
Usage: mysql [OPTIONS] [database]
-?, --help Display this help and exit.
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.
Set the default character set.
(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.
it seems like this is true.
We are sorry for reporting it.