webim icon indicating copy to clipboard operation
webim copied to clipboard

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

Open anvsk opened this issue 4 years ago • 2 comments

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

anvsk avatar Jul 20 '20 03:07 anvsk

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

zhonghaibin avatar Jul 28 '20 09:07 zhonghaibin

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

Zh3Wang avatar Jul 31 '20 04:07 Zh3Wang