Why category.php throw 404 in wordpress while calling paginate_links()?

My problem is solved. To work pagination for a category, the category URL must be like…

localhost/category/abc

and it works fine.

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