Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试连接到远程 MySQL 服务器,但出现此异常错误:
*使用旧(4.1.1 之前)身份验证协议的连接被拒绝(启用客户端选项“secure_auth”)*
我试图通过将字符串“MYSQL_SECURE_AUTH=false”添加到 TZConnection 属性来禁用“secure_auth”选项,但我得到了同样的错误。
我正在使用 ZeosLib 7.0.4 和 Delphi 7。服务器有 MySQL 5.0.95
问题解决了!服务器是 MySQL 5.0.95(secure_auth 禁用),我使用的是 libmysql.dll 5.6.11(secure_auth 默认启用)。将 libmysql.dll 5.0 放在 app 文件夹中解决了它。我还不明白为什么我不能在 TZConnection.properties 更改“MYSQL_SECURE_AUTH”。