Gaea icon indicating copy to clipboard operation
Gaea copied to clipboard

lua 程序无法正常连接Gaea代理

Open sofire opened this issue 4 years ago • 2 comments

local mysql = require "resty.mysql"

local dbConf = {
    host = "192.168.1.1",
    port = 3306,
    user = "xx",
    password = "xx",
    database = "xx",
}

local db, err = mysql:new()
local ok, errno, sqlstate
ok, err, errno, sqlstate = db:connect(dbConf)
if not ok then
    print(err)
end

错误是:unknown plugin:

Gaea 版本:当前最新版本 1.2.3

openresty 版本 resty 0.27 nginx version: openresty/1.19.3.1

sofire avatar Jan 08 '22 14:01 sofire

可以看一下 gaea.in 中 auth_plugin 的配置吗

xiyangxixian avatar Jan 08 '22 17:01 xiyangxixian

没有配置

按照文档,配置 mysql_native_password、caching_sha2_password、'' 3种 也一样的错误

按照我的理解,配置成 caching_sha2_password 应该不能用 mysql 5.5 的client 连接,实际测试也可以 不知道 是配置错误了,还是 理解错误了

sofire avatar Jan 08 '22 18:01 sofire