用户''@ localhost'拒绝访问(使用密码:否)WordPress

After moving a new server, on opening my WordPress website, I'm getting this error.

Access denied for user ''@'localhost' (using password: NO)

The database name, password, localhost everything is correct in wp-config.php. Seems like there is no user who have access to it.

its a vps server with centos 6