How to get pages id in array in get_pages?

You can use include argument (see get_pages() in Codex for details and examples) to retrieve specific set. To continue your snippet that would be:

$pages = get_pages( array(
    'include' => $arrData,
) );

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