Hi,
Make sure your wp-config.php file has “wordpress” as the DB_NAME and “localhost” as the DB_HOST like this:
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');
/** MySQL database username */
define('DB_USER', 'wordpress');
/** MySQL database password */
define('DB_PASSWORD', 'wordpress');
/** MySQL hostname */
define('DB_HOST', 'localhost');
If that still gives you the error, go to your database (if you have phpmyadmin, it’s usually at https://localhost/phpmyadmin ), in the Users or Privileges tab and make sure the user “wordpress” has privileges to the database “wordpress”.
If you can’t get the privileges to work, you can also just create a new user (in phpmyadmin under Privileges or User tab) by clicking “Add User” then check the checkbox that says “Create database with same name and grant all privileges.” That will create a new database for you that will add a new user with all the proper privileges for that database. Make sure you update your wp-config.php with the new database information and you should be good to go.
Hope that helps!