【问题标题】:When trying to alter my password for node js: ERROR 1819 (HY000): Your password does not satisfy the current policy requirements尝试更改节点 js 的密码时:错误 1819 (HY000):您的密码不满足当前的策略要求
【发布时间】:2021-05-29 14:39:07
【问题描述】:

我在用 mysql 安装 Strapi 时遇到问题:

npx create-strapi-app my-app

然后我选择自定义安装并输入我的所有凭据。然后我得到这个错误:

⛔️ Connection test failed: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

From this thread it says:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

当我这样做时,我得到了这个错误:

ERROR 1819 (HY000):您的密码不符合当前政策要求

它说我正在跑步:

欢迎使用 MySQL 监视器。命令以 ; 结尾或 \g。

您的 MySQL 连接 ID 是 11

服务器版本:8.0.23 Homebrew

我在 Macbook air M1 上使用 Big Sur

如何解决这个错误?

【问题讨论】:

    标签: mysql node.js strapi


    【解决方案1】:

    在更改密码之前,您需要将密码验证设置为低:

    SET GLOBAL validate_password.policy = LOW;

    请注意,如果您担心安全问题,这可能不是正确的选择。

    【讨论】:

      猜你喜欢
      • 2020-09-15
      • 2021-08-05
      • 2020-11-05
      • 2017-08-23
      • 1970-01-01
      • 2023-03-21
      • 2018-11-26
      • 1970-01-01
      • 2017-02-12
      相关资源
      最近更新 更多