fanchunke / chatgpt-wecom

企业微信接入 GPT3
MIT License
352 stars 97 forks source link

failed creating schema resources error="mysql: querying mysql version dial tcp 127.0.0.1:3306: connect: connection refused" #6

Closed Jas0nxlee closed 1 year ago

Jas0nxlee commented 1 year ago

2023-02-16T08:06:02Z FATAL ../../../app/cmd/app/app.go:36 > failed creating schema resources error="mysql: querying mysql version dial tcp 127.0.0.1:3306: connect: connection refused"

Jas0nxlee commented 1 year ago

没有安装mysql。

fanchunke commented 1 year ago

@Jas0nxlee 对的,需要有数据库。后续会出一个版本,支持 sqlite,用于本地测试。

Jas0nxlee commented 1 year ago

已找到原因。online.conf内mysql的ip改为内网ip或已映射的公网ip,不要用127.0.0.1 [database] dialect="mysql" host="127.0.0.1" port=3306 user="root" password="12345678" dbname="chatgpt"

fanchunke commented 1 year ago

@Jas0nxlee 好的,那我先关闭 issue 了。