我正在使用 cygwin,每次调用 heroku 时,它都会输出两次看起来像 msql 的帮助返回,然后正常工作:
Kenneth@Forge ~ $ heroku
MySQL Ver 14.14 Distrib 5.5.41, for CYGWIN (x86_64) using readline 6.3
Copyright (c) 2000, 2014, 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.
-I, --help Synonym for -?
--auto-rehash Enable automatic rehashing. One doesn't need to use
'rehash' to get table and field completion, but startup
and reconnecting may take a longer time. Disable with
--disable-auto-rehash.
(Defaults to on; use --skip-auto-rehash to disable.)
-A, --no-auto-rehash
No automatic rehashing. One has to use 'rehash' to get
table and field completion. This gives a quicker start of
mysql and disables rehashing on reconnect.
...等等,以...结尾
secure-auth FALSE
show-warnings FALSE
plugin-dir (No default value)
default-auth (No default value)
然后重复上述操作,然后正常工作。数小时的搜索没有任何结果,卸载并重新安装 heroku 也没有结果。我试图查看 heroku 文件以找出正在执行此操作的原因,但我的理解力还差得很远。非常感谢任何有关如何解决此问题的帮助。
最佳答案
终于找到了问题所在,MySQL 在我的路径中添加了两个项目,其中有一个 Linux 不喜欢的 &,比如“MySQL thing 1.0 & MySQL thing 2.0”。检查路径时,Linux 将 & 符号之后的所有内容解释为一个单独的参数,并且由于它是无效的,因此它会显示帮助选项。
关于mysql - Cygwin 上的 Heroku 正在记录一些奇怪的东西,看起来像 "mysql --help",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32909270/