在网站移动到 magento 中的实时服务器后出现访问被拒绝的问题?

Getting access denied issue after site moving to live server in magento?

我已将 magento 网站移至我的实时服务器。

但是当我尝试打开它时,它给我错误提示,如“http://prntscr.com/ff3yp2”。

你能帮我解决这个问题吗?

谢谢

出现这个问题有两个原因。

  1. app/etc/local.xml 文件中提到了不正确的数据库连接详细信息。

  2. 提及用户没有该数据库的所有权限。

您也可以检查主机。

尝试创建 MySQL 用户。我过去在使用来自另一台服务器的 Magento 数据库时遇到过这个问题。

更新密码并执行这两个命令。

CREATE USER 'inkpri_new'@'localhost' IDENTIFIED BY 'password';

GRANT ALL PRIVILEGES ON * . * TO 'inkpri_new'@'localhost';

https://www.digitalocean.com/community/tutorials/how-to-create-a-new-user-and-grant-permissions-in-mysql