louislivi / SMProxy

Swoole MySQL Proxy 一个基于 MySQL 协议,Swoole 开发的MySQL数据库连接池。 A MySQL database connection pool based on MySQL protocol and Swoole.
https://smproxy.louislivi.com
MIT License
1.78k stars 258 forks source link

当数据库密码为空时,无法连接数据库 #64

Closed zhenzhenwu closed 5 years ago

zhenzhenwu commented 5 years ago

Describe Your Environment (描述你的环境)

How to Reproduce the Problem? (如何重现问题)

数据库密码为空字符串时 "account": { "root_test": { "user": "root_test", "password": "" } },

Expected Behavior (预期行为)

使用PDO原生可以正常连接mysql,使用SMProxy无法连接

Actual Behavior (实际行为)

SMProxy@Connection xxxxxx waiting timeout, 无法连接数据库,根据打印得知 Rÿ#28000Access denied for user 'xxxx'@'xxxxxx' (using password: YES)

More Information (更多信息)

...

louislivi commented 5 years ago

是的,存在这个问题 设置个密码就好了