Access denied for user

Hey, here I come asking for help with the problem

ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: NO)
I’ve tried various methods, but it still stays in one place and ends up failing