Cygwin上的Heroku正在记录一些奇怪的东西,看起来像“mysql --help”

时间:2015-10-02 14:18:28

标签: mysql heroku cygwin

我正在使用cygwin,每次调用heroku时,它会输出看起来像msql两次帮助返回的内容,然后正常工作:

public class EllipseStrokeConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    {
        var width = (double)value;

        var strokeDashArray = new DoubleCollection();

        strokeDashArray.Add(CalculatePercentage(width, 0.1));
        strokeDashArray.Add(CalculatePercentage(width, 0.5));
        strokeDashArray.Add(CalculatePercentage(width, 0.25));
        strokeDashArray.Add(CalculatePercentage(width, 0.15));

        return strokeDashArray;
    }

    private double CalculatePercentage(double width, double percent)
    {
        return 2 * 3.14 * (width / 2) * percent;
    }

    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}

......等等,以......结尾。

    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.

然后重复与上面相同的操作,然后正常工作。几小时的搜索没有产生任何结果,也没有卸载和重新安装heroku。我试着查看heroku文件,找出这是做什么的,但是我远远超出了我的深度。如何解决这个问题的任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

最后发现问题是什么,MySQL在我的路径中添加了两个项目,其中包含& Linux中不喜欢的东西,比如“MySQL thing 1.0& MySQL thing 2.0”。在检查路径时,Linux将所有内容解释为&符号作为单独的参数,并且因为它是无效的,它显示了帮助选项。