Changing permalink of custom category

It seems that a few people create a custom function to filter in custom taxonomy names into post_type_link. This post provides a simple approach to problem:

Mixing custom post type and taxonomy rewrite structures?

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