CPT/Taxonomy/Postname permalink structure makes pagination break

I had similar issue with pagination also, but my pagination everytime redirects to 404. What I did was use standard loop but with pre_get_posts function where I defined additional paramets. Now pagination works perfectly on archive, taxonomy or search template.

https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts

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