How to add post page pagination to template part?

Right after the endwhile line, try adding…

<?php the_posts_pagination(); ?>

more info on the_posts_pagination()

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