error code 1045. access denied for user (using password yes) code example Example: ERROR 1045 (28000): Access denied for user 'ananyapam'@'localhost' (using password: NO) sudo mysql -u root -p