Pagination for Category does not work

You should use the pre_get_posts action to get the correct number of category pages and links.
The complete solution is explained here.

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