Custom Post Type is not respecting assigned categories

I’m going to quote this answer https://wordpress.stackexchange.com/a/242254/91219

Order really shouldn't really matter but it's good practice to register things in a hierarchical structure.

    register_post_type( $cpt, $args );
    register_taxonomy( $catname, $cpt );

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