How to get list of custom taxonomies based on custom post type

Yo might want to have a look at this post:

You can include the empty terms by passing 'hide_empty' => 0,.

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