Get tags name under custom taxonomy in wordpress

You can use the following code to get all tags in a taxonomy.

<?php

$tags = get_terms(
    array(
        'taxonomy' => 'your_taxonomy',
    )
);

foreach( $tags as $tag ) {
    echo $tag->name;
}

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