netease-youdao / QAnything

Question and Answer based on Anything.
https://qanything.ai
GNU Affero General Public License v3.0
11.96k stars 1.16k forks source link

[BUG] <title> _mysql_connector.MySQLInterfaceError: Unknown MySQL server host 'mysql-container-local' (-2) #164

Open zlh1992 opened 8 months ago

zlh1992 commented 8 months ago

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

当前行为 | Current Behavior

后端服务起不来:

nohup python3 -u /mnt/f/lm_code/QAnything/qanything_kernel/qanything_server/sanic_api.py --mode "local" > /mnt/f/lm_code/QAnything/logs/debug_logs/sanic_api.log 2>&1 &

这段代码运行后一直报错: _mysql_connector.MySQLInterfaceError: Unknown MySQL server host 'mysql-container-local' (-2)

期望行为 | Expected Behavior

No response

运行环境 | Environment

- OS:
- NVIDIA Driver:
- CUDA:
- docker:
- docker-compose:
- NVIDIA GPU:
- NVIDIA GPU Memory:

QAnything日志 | QAnything logs

No response

复现方法 | Steps To Reproduce

后端服务起不来:

nohup python3 -u /mnt/f/lm_code/QAnything/qanything_kernel/qanything_server/sanic_api.py --mode "local" > /mnt/f/lm_code/QAnything/logs/debug_logs/sanic_api.log 2>&1 &

这段代码运行后一直报错: _mysql_connector.MySQLInterfaceError: Unknown MySQL server host 'mysql-container-local' (-2)

备注 | Anything else?

No response

yaleimeng commented 8 months ago

问题一样,有谁解决了吗?还请留下解决办法,谢谢

a614349007 commented 6 months ago

问题一样,有谁解决了吗?能否留下解决办法,感谢

jiangyunwen7 commented 6 months ago

问题一样,有谁解决了吗?能否留下解决办法,感谢

yjjiang11 commented 5 months ago

我也遇到一样的问题,需要起MySQL服务?

jiangyunwen7 commented 5 months ago

您好,邮件已收到,我会尽快给您回复。祝好!                                          蒋运文

zlh1992 commented 5 months ago

我在pycharm里自己起了mysql服务 可以不报错

在 2024-06-13 15:36:11,"姜永久" @.***> 写道:

我也遇到一样的问题,需要起MySQL服务?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>