Adding Pinterest Script Before Closing Body Tag

Yes, you have to use wp_enqueue_script function. Pass $in_footer argument as true and your script will be added before closing body:

function my_scripts_method() {
    wp_enqueue_script( 'pinterest', '//assets.pinterest.com/js/pinit.js', array(), false, true);
}    
add_action( 'wp_enqueue_scripts', 'my_scripts_method' );

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