将 Magento 1.9 移动到新服务器后出现 "Invalid User Name or Password" 错误

Getting "Invalid User Name or Password" error after moving Magento 1.9 to new server

我使用以下步骤将 Magento 网站从旧服务器移至新服务器:

1. Export database and Search & Replace old domain URL in the editor.
2. Zip all Magento root files and upload on the new server using FTP.
3. Change the database name and user information in the app/etc/local.xml file.

现在网站前端在新服务器上运行良好,我也可以访问管理员登录页面,但我的登录凭据不起作用。

登录凭据在旧服务器上工作正常,但在新服务器上出现 "Invalid User Name or Password" 错误。

我从 var/cache 文件夹中删除了缓存文件,但仍然没有成功。

我是不是漏掉了什么?

谢谢

还不能评论。我能想到的两件事:

  • 未将 cookie 域设置为适当的值。
  • 在 local.xml
  • 中使用不同的加密值

您也可以尝试直接在数据库中设置一个新的管理员密码(您应该备份旧值)。管理员用户存储在 admin_user 中。 Magento 1.x 将密码保存为 MD5 哈希值,因此您应该可以使用 md5(PASSWORD).

设置新密码

数据库中没有 admin_user 连接到我的邮件地址。所以我通过 phpmyadmin 更改了数据库中当前 admin_users 的邮件地址。然后按 "forgot my password" 并填写新的 mailadres。然后我在我的邮箱里收到了一个重设密码。它奏效了。