Shortcode to output get_header not working

Something like the following should work:

function my_header() {
    ob_start();
    include(get_template_directory() .'/file.php';
    $content = ob_get_clean();
    return $content;
}
add_shortcode('include', 'my_header');

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