在站点值中通过helm安装Vitess时,我们启用了身份验证。
mysqlProtocol:
enabled: false
authType: secret
# authType can be: none or secret. For secret, perform the following changes:
username: mysqluser
# this is the secret that will be mounted as the user password
# kubectl create secret generic mysql-user-passowrd --from-literal=password=abc_123
passwordSecret: mysql-user-passowrd但在此之后,如果我们尝试连接mysql -h 10.108.8.197 -p 15991 -u mysqluser
输入密码后,不进行身份验证,显示错误,无法连接到“10.108.197”(111)上的MySQL服务器。
10.108.8.197是我们的Vtgate服务集群IP,如果我们尝试从127.0.0.1也相同
我们遗漏了什么吗?
发布于 2020-03-24 08:50:13
对我们起作用的是删除通过头盔安装的vitess,删除vitess --然后通过启用mysql协议重新创建vitess。
mysqlProtocol:
enabled: true
authType: secret
# authType can be: none or secret. For secret, perform the following changes:
username: mysqluser
# this is the secret that will be mounted as the user password
# kubectl create secret generic mysql-user-passowrd --from-literal=password=abc_123
passwordSecret: mysql-user-passowrdhttps://stackoverflow.com/questions/60561770
复制相似问题