I just tried to upgrade the latest wordpress version, and it throws this error. Access denied for user ''@'localhost' (using password: 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. But why still im getting the same error, Its a server problem or anything has corrupted while upgrading the wordpress version.
There are many reasons for having such problems:
DB_HOST
? Some hosting companies do not work with 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.