[英]Access denied for user ''@'localhost' (using password: NO) When Upgrading Wordpress
I just tried to upgrade the latest wordpress version, and it throws this error. 我只是尝试升级最新的wordpress版本,并引发此错误。 Access denied for user ''@'localhost' (using password: NO) . 用户``@'localhost''的访问被拒绝(使用密码:NO)。 I immediately communicated it to the service provider, they say it is a database error. 我立即将其告知服务提供商,他们说这是数据库错误。 But i checked the wp-config file with correct database name, username and password, It is all perfect. 但是我用正确的数据库名称,用户名和密码检查了wp-config文件,这是完美的。 But why still im getting the same error, Its a server problem or anything has corrupted while upgrading the wordpress version. 但是,为什么在升级wordpress版本时仍然会收到相同的错误,服务器问题或任何损坏?
There are many reasons for having such problems: 出现此类问题的原因很多:
DB_HOST
? 您是否将localhost用作DB_HOST
? Some hosting companies do not work with localhost . 一些托管公司不使用localhost 。 See codex reference for more. 有关更多信息,请参见法典参考 。 In your case I would go with the last one, as you say that the issue came up after the update 在您的情况下,我会选择最后一个,因为您说的是更新后出现了问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.