蒸气连接被拒绝(错误号 61)
Vapor Connection refused (errno 61)
我在尝试 运行 我的 Vapor 3 应用程序时看到以下错误:
Thread 1: Fatal error: Error raised at top level: NIO.ChannelError.connectFailed(NIO.NIOConnectionError(host: "127.0.0.1", port: 3306, dnsAError: nil, dnsAAAAError: nil, connectionErrors: [NIO.SingleConnectionFailure(target: [IPv4]127.0.0.1/127.0.0.1:3306, error: connection reset (error set): Connection refused (errno: 61))]))
它曾经工作得很好。
我能做什么?
可能是数据库服务器还没有运行ning。
对于 MySQL,打开一个终端并 运行 命令:
$ mysql.server start
对于 Postgres,执行:
$ brew services start postgres
然后,再次尝试 运行 该项目。它现在应该又可以工作了:)
取自here.
我在尝试 运行 我的 Vapor 3 应用程序时看到以下错误:
Thread 1: Fatal error: Error raised at top level: NIO.ChannelError.connectFailed(NIO.NIOConnectionError(host: "127.0.0.1", port: 3306, dnsAError: nil, dnsAAAAError: nil, connectionErrors: [NIO.SingleConnectionFailure(target: [IPv4]127.0.0.1/127.0.0.1:3306, error: connection reset (error set): Connection refused (errno: 61))]))
它曾经工作得很好。
我能做什么?
可能是数据库服务器还没有运行ning。
对于 MySQL,打开一个终端并 运行 命令:
$ mysql.server start
对于 Postgres,执行:
$ brew services start postgres
然后,再次尝试 运行 该项目。它现在应该又可以工作了:)
取自here.