Get All Pages as strings in array

Use get_pages() to fetch an array of page objects, then pass that result to wp_list_pluck() to extract an array of just page titles:

$page_titles = wp_list_pluck( get_pages(), 'post_title' );
print_r( $page_titles );

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