Password protect custom template

Okay so I made it work with include this is my updated code:

<?php /* Template Name: pw-protect */ ?>

<?php
    global $post;
    get_header();

    if ( ! post_password_required( $post ) ) {
          // Your custom code should here
        include('indiPartnership.php');


    }else{
        // we will show password form here
        echo get_the_password_form();
    }

?>

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