What is the difference between the “Main Index Template”(index.php) and HomePage(front-page.php)

What is the difference between the “Main Index Template”(index.php) and HomePage(front-page.php)

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)