Solved “(ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)”
During the installation and configuration mysql on linux machine if you encounter this error so this idea may help to resolve “Access denied for user ‘root’@’localhost’.