配置完尝试连接mysql出现mysqli_connect(): The server requested authentication method unknown to the这种问题,查了一下发现是mysql8密码机制换成了cha2导致的,解决办法简单,来一个SQL命令:

ALTER USER ‘username’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘password’;
PHP 连接mysql报错The server requested authentication method unknown

相关文章:

  • 2021-08-30
  • 2022-12-23
  • 2021-09-14
  • 2021-11-25
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
猜你喜欢
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2022-03-10
  • 2022-12-23
  • 2018-07-24
相关资源
相似解决方案