Read the error message:
Error: 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
The username or password is incorrect, or you are accessing the wrong DB.
We can't fix that!
Try logging in via whatever management app you used to create the DB, then compare that login data with the actual string you use to try and log in.