Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有关centos,docker,MySQL error,timer tick等个人解决经验 #298

Open
lzyzzz-lzy opened this issue Dec 3, 2024 · 1 comment
Open

Comments

@lzyzzz-lzy
Copy link

1、第一次环境为anolisos8(可以算是centos7),MySQL环境: 此Linux环境下的docker运行的MySQL8(run 时已开启3306端口映射)
问题:MySQL error
尝试其他lssue办法,在
image 截断加错误输出等等调试方法,未解决
改ip为127.0.0.1 或 anolisos8 ip,均timer tick
改MySQL用户、改权限等等方法均未解决
2、第二次环境依旧anolisos8,但项目环境改为此Linux环境下运行的docker运行的Ubuntu(即套娃):16.04,MySQL环境在一次次尝试
中改为docker 运行的MySQL5
修改ip为localhost、127.0.0.1均不行
终 改ip为 anolisos8 ip 运行测试成功

总结:主要原因猜测是Ubuntu问题,建议不要用centos
MySQL版本到底有没有影响不清楚,但建议一切配置按文档来
若像我一样全使用docker,记得run MySQL时开启 3306 端口映射,防止连接不上
若同时开发还选在远程vscode上,可gpt了解如何vscode连接容器运行出的Linux,应该是需要个dev-continer的拓展

@lzyzzz-lzy
Copy link
Author

测试完,MySQL8和MySQL5都行,估计就是centos的问题,建议用Ubuntu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant