[英]Google Cloud Access Token Expiry
I'm trying to connect to the MySQL database with the authentication type gcp_iam_auth.我正在尝试使用身份验证类型 gcp_iam_auth 连接到 MySQL 数据库。 This requires me to always get a token from GCP via this command
gcloud auth print-access-token
, but the problem is that this token expires after one hour.这要求我始终通过此命令
gcloud auth print-access-token
token 从 GCP 获取令牌,但问题是该令牌在一小时后过期。 So I entered the MySQL Administration and tried to copy the password from my user.所以我进入了 MySQL Administration 并试图从我的用户那里复制密码。 I received a forbidden message ( Attached screenshot ).
我收到了一条禁止消息(附上截图)。 How can I get this password?
我怎样才能得到这个密码? Am I connecting the right way?
我连接的方式正确吗?
https://i.stack.imgur.com/ymScU.png https://i.stack.imgur.com/ymScU.png
You cannot retrieve the password.您无法找回密码。 The system does not know the plain text password either.
系统也不知道明文密码。
The command gcloud auth print-access-token
is intended for developers to use while writing and testing software and not for long-term use ie the token is valid for 3,600 seconds (with default organization settings).命令
gcloud auth print-access-token
旨在供开发人员在编写和测试软件时使用,而不是长期使用,即令牌的有效期为 3,600 秒(使用默认组织设置)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.