Get Posts by Custom Taxonomy on Custom Post

<?php
// get the WP_Query object
$query = new WP_Query($args);

// Missed essential point:
// loop through the WP_Query object
// to get the array of distinct posts objects
$coaches = $query->posts;

// each $coach is distinct post object now
foreach( $coaches as $coach ) {
    // echo $coach->ID;
}

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