Pagination in custom post type page template

Just make sure that the code you have write in archive-{post_type}.php file or you can use ajax pagination

if you need to use page template:
Add this 'has_archive' => 'page template' when you register the custom post type

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