[BUG]ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) #6941
Unanswered
dengxiwang
asked this question in
Q&A
Replies: 1 comment
-
这可能与 NAS 环境有关。建议先排查 MySQL 容器日志,然后检查 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
联系方式
[email protected]
1Panel 版本
v1.10.20-lts
问题描述
我用的是绿联云nas,debian12的系统底层,将1panel安装在了/volume1/server目录下,在应用商店安装mysql应用,安装是正常的,但是点击菜单中的数据库,点击设置,会显示ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2),如果安装别的应用使用这个数据库,也是提示这样的错误。
但是如果在应用商店中安装5.7版本的数据库,是正常的,不会报错,其他应用也可以正常使用,但是5.7版本的话应用商店的升级不会显示升级到8.x的版本
容器日志文件:
_volume1_server_1panel_apps_mysql_mysql_docker-compose.yml-20241104163523.log
重现步骤
将1panel安装在了/volume1/server目录下,在应用商店安装mysql应用,安装是正常的,但是点击菜单中的数据库,点击设置,会显示ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
期待的正确结果
一切正常
相关日志输出
No response
附加信息
No response
Beta Was this translation helpful? Give feedback.
All reactions