Excert ( the_excerpt(); ) Not working properly

If you adding this code in content.php then you should use conditions.

<?php if ( is_single() ) : ?>
    <?php the_content(); ?>
<?php else : ?>
    <?php the_excerpt(); ?>
<?php endif; ?>

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