Fabric-CA无法连接到MySQL

时间:2018-09-18 10:57:52

标签: hyperledger-fabric hyperledger hyperledger-fabric-ca

使用fabri ca配置mysql时,出现以下错误:

Failed to create user registry for MySQL: Failed to connect toMySQL database: dial tcp 127.0.0.1:3306: getsockopt: connection refused

这是配置文件更改:

type: mysql
  datasource: root:rootpw@tcp(localhost:3306)/fabric_ca?parseTime=true
  tls:
      enabled: false
      certfiles:
      client:
        certfile:
        keyfile:

0 个答案:

没有答案