SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) magento 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