Adding a custom post type taxonomy template in plugin

This works:

add_filter('template_include', 'taxonomy_template');
function taxonomy_template( $template ){

if( is_tax('accommodation-categories')){
    $template = BASE_DIR .'/templates/taxonomy-accommodation-categories.php';
}  

return $template;

}

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