Database Connection Error

Unable to connect to the database. Please ensure database credentials in config/database.php are correct and schema.sql has been imported via phpMyAdmin.

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)