Programatically add a page in WordPress

'post_type' => ['page'] must be 'post_type' => 'page'. Just look at the example here: http://codex.wordpress.org/Function_Reference/wp_insert_post#Example

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