#1045 - Access denied for user 'lesmond'@'localhost' (using password: YES) code example Example: Error 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) sudo mysql -u root -p