How to get URL param for pagination in shortcode?

You can use get_query_var('paged'), this will return the current page in pagination.

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

Or the shorter form

$paged = get_query_var('paged') ?: 1;

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