首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Vitess MySQL身份验证不起作用

Vitess MySQL身份验证不起作用
EN

Stack Overflow用户
提问于 2020-03-06 10:06:28
回答 1查看 145关注 0票数 2

在站点值中通过helm安装Vitess时,我们启用了身份验证。

代码语言:javascript
复制
  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也相同

我们遗漏了什么吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-03-24 08:50:13

对我们起作用的是删除通过头盔安装的vitess,删除vitess --然后通过启用mysql协议重新创建vitess。

代码语言:javascript
复制
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-passowrd
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60561770

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档