![]() | 1 Felldeadbird 2022-08-25 09:19:14 +08:00 我记得好像是 mysql8 开始用新的密码认证导致的(要改用旧版的密码认证)。当时搜索过,PHP 官方没给解决方案。 |
2 Rache1 2022-08-25 09:23:43 +08:00 跟 wp 无关,跟 php 版本有关。 |
4 Rache1 2022-08-25 09:39:22 +08:00 @NETID PHP: 需求 - Manual https://www.php.net/manual/zh/mysqli.requirements.php 根据捆绑的 MySQL nd 版本不同支持性可能不一样,具体没有测试过,文档中说 7.1.16 之前的不支持,但是我本机是 Windows ,实测 7.1.33 仍然不支持。 php 7 的 changelog 里面 Windows 上是 7.4.4 开始支持的。 |
5 Rache1 2022-08-25 09:44:32 +08:00 ![]() 看来是在 PHP 7.4 就开始支持了。 Fix PHP 7.4 + MySQL 8 errors with `server has gone away` PHP.Watch https://php.watch/articles/PHP-7.4-MySQL-8-server-gone-away-fix |