Listing all post from different custom post type for the logged in user

Try Below code.This will helpful

$user_id = get_current_user_id();
$args = array(
'author' => $user_id 
);
$query = new WP_Query( $args ); 
if ( $query->have_posts() ) :
while ( $query->have_posts() ) : $query->the_post();

  // Do Stuff
endwhile;
endif;

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