Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sofire opened this issue Jan 8, 2022 · 2 comments
Open

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

sofire opened this issue Jan 8, 2022 · 2 comments

Comments

@sofire
Copy link

sofire commented Jan 8, 2022

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

@xiyangxixian
Copy link
Contributor

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

@sofire
Copy link
Author

sofire commented Jan 8, 2022

没有配置

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants