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

docker环境启动后数据库连接失败 #6

Open
icekola opened this issue Dec 13, 2024 · 3 comments
Open

docker环境启动后数据库连接失败 #6

icekola opened this issue Dec 13, 2024 · 3 comments

Comments

@icekola
Copy link

icekola commented Dec 13, 2024

kali中docker搭建环境,正常启动后
image

但是访问web页面后,登陆提示数据库连接失败,请问是哪的问题呢,排查了一遍没发现是哪的问题
image

@icekola
Copy link
Author

icekola commented Dec 13, 2024

已解决,数据库配置文件database.php用户和密码改成自身mysql整体数据库的用户和密码即可。

@Yokr0n0s
Copy link

已解决,数据库配置文件database.php用户和密码改成自身mysql整体数据库的用户和密码即可。
请问下只需要改database.php 的用户名和密码这块就可以了么,我这边通过修改 docker 里面的mysql镜像改过root的密码了,但是依然提示无法连接数据库

@icekola
Copy link
Author

icekola commented Dec 20, 2024

已解决,数据库配置文件database.php用户和密码改成自身mysql整体数据库的用户和密码即可。
请问下只需要改database.php 的用户名和密码这块就可以了么,我这边通过修改 docker 里面的mysql镜像改过root的密码了,但是依然提示无法连接数据库

docker可能不太好操作,改的多,这边给一个phpstudy的,更快速方便
https://www.yuque.com/icekola/ubgge5/clqg6k3mdg6ottmh?singleDoc# 《phpstudy安装配置问题》

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

2 participants