Custom Post Type canonical link / pagination redirecting to root

just remove template redirect using remove template_redirect filter

use below code to stop the canonical redirect.

remove_filter('template_redirect','redirect_canonical');

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