This usually happens when you move to a live server and the database credentials are not updated.
.env file in your project root.DB_NAME, DB_USER, and DB_PASS.install.sql to your live database.Error Details: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)