简体   繁体   English

升级Wordpress时拒绝用户“ @'localhost”的访问(使用密码:NO)

[英]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: 出现此类问题的原因很多:

  • Hosting provider problems 托管服务提供商问题
  • Wrong DB info in wp-config wp-config中错误的数据库信息
  • A hostname issue. 主机名问题。 Are you using localhost as a DB_HOST ? 您是否将localhost用作DB_HOST Some hosting companies do not work with localhost . 一些托管公司不使用localhost See codex reference for more. 有关更多信息,请参见法典参考
  • Database tables need repair/optimization. 数据库表需要修复/优化。 Wordpress has an in built functionality to achieve this . WordPress具有内置功能来实现此目的
  • Changes in the way wordpress handles databases. Wordpress处理数据库方式的变化。 Similar post and solution . 类似的职位和解决方案

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.

相关问题 用户 'root'@'localhost' 访问被拒绝(使用密码:YES)? 安装wordpress - Access denied for user 'root'@'localhost' (using password: YES) ? wordpress install 用户'linuxuser'@'localhost'的访问被拒绝(使用密码:否) - Access Denied for user 'linuxuser'@'localhost' (using password: no) WordPress-mysql_query():生产服务器上用户'www-data'@'localhost'的访问被拒绝(使用密码:NO)错误 - Wordpress - mysql_query(): Access denied for user 'www-data'@'localhost' (using password: NO) error on production server mysql_query():拒绝用户“ @'localhost”的访问(使用密码:NO) - mysql_query(): Access denied for user ''@'localhost' (using password: NO) 用户“root@localhost”的访问被拒绝(使用密码:否) - Access denied for user 'root@localhost' (using password:NO) mysqli_real_connect(): (HY000/1045): Access denied for user 'admin'@'localhost' (using password: YES) wordpress - mysqli_real_connect(): (HY000/1045): Access denied for user 'admin'@'localhost' (using password: YES) wordpress Wordpress错误:(HY000 / 1045):用户'root'@'localhost'的访问被拒绝(使用密码:是)1538行上的wp-db.php - Wordpress error: (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) wp-db.php on line 1538 #1045 - 用户 'root'@'localhost' 的访问被拒绝(使用密码:YES)MAMP MySQL 访问被拒绝 - #1045 - Access denied for user 'root'@'localhost' (using password: YES) MAMP MySQL access denied Win 10,MySQLDump 给出错误“mysqldump: Got error: 1045: Access denied for user '=root'@'localhost' (using password: YES) 当尝试连接时” - Win 10, MySQLDump gives error “mysqldump: Got error: 1045: Access denied for user '=root'@'localhost' (using password: YES) when trying to connect” Wordpress MYSQL 管理区域错误 - mysqli_real_connect(): (HY000/1045): Access denied for user 'WordPressUser'@'localhost' (使用密码: YES) - Wordpress MYSQL Admin area error - mysqli_real_connect(): (HY000/1045): Access denied for user 'WordPressUser'@'localhost' (using password: YES)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM