【问题标题】:Vitess MySQL authentication is not workingVitess MySQL 身份验证不起作用
【发布时间】:2020-06-19 01:17:15
【问题描述】:

在 site-values.YAML 中通过 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 mysql -h 10.108.8.197 -p 15991 -u mysqluser

输入密码后,它没有进行身份验证 并显示错误 Can't connect to MySQL server on '10.108.8.197' (111)

10.108.8.197 是我们的 Vtgate 服务集群 IP,如果我们从 127.0.0.1 尝试也一样

我们有什么遗漏的吗?

【问题讨论】:

    标签: mysql vitess


    【解决方案1】:

    对我们有用的是 delete vitess 通过 helm 安装 delete vitess --purge 然后通过启用 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-passowrd
    
    

    【讨论】:

      猜你喜欢
      • 2021-04-18
      • 2012-10-04
      • 1970-01-01
      • 1970-01-01
      • 2012-04-29
      • 2012-03-18
      • 2011-07-05
      相关资源
      最近更新 更多