我正在尝试使用 mysql-proxy 来替换身份验证凭据,如下所示:
proxy.queries:append(1,
proto.to_response_packet({
username = "connect",
response = password.scramble(s.scramble_buffer, password.hash("cpass!1")),
charset = 8, -- default charset
database = c.default_db,
max_packet_size = 1 * 1024 * 1024
})
)
它因此错误而失败:
(关键)(read_auth)[字符串“/home/aabbcc/test.lua”]:51:必须设置.server_capabilities
如何正确设置“.server_capabilities”?