WordPress Blog has an infinite redirect loop

Try using this in your header:

<?php 

if( ! is_user_logged_in() ) 
{
    wp_redirect( wp_login_url() );
    exit();
}

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