Need help with get_posts pagination

previous_posts_link and next_posts_link are for archive page pagination, they both check if is_single is not true, so will not work on any sort of single post, page, or custom post type. use paginate_links instead or just manually build your pagination links.

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