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

mysql都连不上,也是搞了一上午,不知道你们怎么走到后面的 #58

Open
anvsk opened this issue Jul 20, 2020 · 2 comments

Comments

@anvsk
Copy link

anvsk commented Jul 20, 2020

Uncaught RuntimeException: failed to connect mysql server. in /website/wwwroot/webim/src/Pool.php:26
我自己的mysql肯定没问题的,试过各种改configs/db就是死活报这个错

@zhonghaibin
Copy link

你忽略的redis配置。肯定是redis没配置好,看下redis端口和有没有设置密码

@Zh3Wang
Copy link

Zh3Wang commented Jul 31, 2020

楼上说对了,是redis没有配置端口吧,你看Pool.php的文件,好像无论是mysql连接失败还是redis,都会抛出mysql连接失败的错误,你在redis.php加多一个"port" => 端口号配置即可

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

3 participants