Echo a list of all subscriber’s user IDs

Check out get_users():

$subscriber_ids = get_users(
    array(
        'fields' => 'ids',
        'role'   => 'subscriber',
    )
);

foreach ( $subscriber_ids as $id )
    echo "$id<br />";

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