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